Skip to content

Commit 6a2a20d

Browse files
feat(test): clean up tests, test new main/files
1 parent 7518699 commit 6a2a20d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/manifest/main.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ fn it_creates_a_package_json_default_path() {
4040
pkg.repository.url,
4141
"https://github.com/ashleygwilliams/wasm-pack.git"
4242
);
43-
assert_eq!(pkg.files, ["wasm_pack.js", "wasm_pack_bg.wasm"]);
44-
assert_eq!(pkg.main, "wasm_pack.js");
43+
assert_eq!(pkg.files, ["wasm_pack_bg.wasm"]);
44+
assert_eq!(pkg.main, "index.js");
4545
}
4646

4747
#[test]
@@ -54,7 +54,6 @@ fn it_creates_a_package_json_provided_path() {
5454
assert!(utils::read_package_json(&path).is_ok());
5555
let pkg = utils::read_package_json(&path).unwrap();
5656
assert_eq!(pkg.name, "js-hello-world");
57-
assert_eq!(pkg.files, ["js_hello_world.js", "js_hello_world_bg.wasm"]);
5857
}
5958

6059
#[test]
@@ -67,8 +66,4 @@ fn it_creates_a_package_json_provided_path_with_scope() {
6766
assert!(utils::read_package_json(&path).is_ok());
6867
let pkg = utils::read_package_json(&path).unwrap();
6968
assert_eq!(pkg.name, "@test/scopes-hello-world");
70-
assert_eq!(
71-
pkg.files,
72-
["scopes_hello_world.js", "scopes_hello_world_bg.wasm"]
73-
);
7469
}

0 commit comments

Comments
 (0)