From 4ca0f02daeba73e2415a5528b42193f87b7ed8ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gunnlaugur=20=C3=9E=C3=B3r=20Briem?= Date: Fri, 8 Oct 2021 13:32:03 +0000 Subject: [PATCH] test: update new test to expect main instead of module Update test case that landed after this PR was created, in https://github.com/rustwasm/wasm-pack/pull/1061, to expect main attribute in package.json instead of module attribute. --- tests/all/manifest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/all/manifest.rs b/tests/all/manifest.rs index 78fdc6a..671cbb3 100644 --- a/tests/all/manifest.rs +++ b/tests/all/manifest.rs @@ -346,7 +346,7 @@ fn it_creates_a_package_json_with_npm_dependencies_provided_by_wasm_bindgen() { pkg.repository.url, "https://github.com/rustwasm/wasm-pack.git" ); - assert_eq!(pkg.module, "js_hello_world.js"); + assert_eq!(pkg.main, "js_hello_world.js"); let actual_files: HashSet = pkg.files.into_iter().collect(); let expected_files: HashSet = [