🌐 AI搜索 & 代理 主页
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
more test
  • Loading branch information
levkk committed Sep 3, 2023
commit 85b8365ec2b28f721bbf03e9bc30e9b6d524ea29
11 changes: 11 additions & 0 deletions pgml-apps/cargo-pgml-components/tests/test_add_component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,17 @@ fn test_component_with_dashes() {
.unwrap();

assert!(html.contains("<div data-controller=\"test-component-subcomponent-alpha-beta-gamma\">"));

for path in [
"test_component/subcomponent/mod.rs",
"test_component/mod.rs",
] {
temp.child(&format!("src/components/{}", path))
.assert(predicate::path::exists());

let file = read_to_string(temp.child(&format!("src/components/{}", path)).path()).unwrap();
assert!(file.contains("pub mod"));
}
}

#[test]
Expand Down