File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ fn it_creates_a_package_json_default_path() {
40
40
pkg. repository. url,
41
41
"https://github.com/ashleygwilliams/wasm-pack.git"
42
42
) ;
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" ) ;
45
45
}
46
46
47
47
#[ test]
@@ -54,7 +54,6 @@ fn it_creates_a_package_json_provided_path() {
54
54
assert ! ( utils:: read_package_json( & path) . is_ok( ) ) ;
55
55
let pkg = utils:: read_package_json ( & path) . unwrap ( ) ;
56
56
assert_eq ! ( pkg. name, "js-hello-world" ) ;
57
- assert_eq ! ( pkg. files, [ "js_hello_world.js" , "js_hello_world_bg.wasm" ] ) ;
58
57
}
59
58
60
59
#[ test]
@@ -67,8 +66,4 @@ fn it_creates_a_package_json_provided_path_with_scope() {
67
66
assert ! ( utils:: read_package_json( & path) . is_ok( ) ) ;
68
67
let pkg = utils:: read_package_json ( & path) . unwrap ( ) ;
69
68
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
- ) ;
74
69
}
You can’t perform that action at this time.
0 commit comments