Skip to content

Commit 2b5b7f0

Browse files
committed
fix test
1 parent 64b2fef commit 2b5b7f0

File tree

1 file changed

+5
-2
lines changed
  • crates/cli/tests/wasm-bindgen

1 file changed

+5
-2
lines changed

crates/cli/tests/wasm-bindgen/main.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,15 @@ fn default_module_path_target_no_modules() {
260260
fs::read_to_string(out_dir.join("default_module_path_target_no_modules.js")).unwrap();
261261
assert!(contents.contains(
262262
"\
263-
async function init(input) {
264263
if (typeof document === 'undefined') {
265264
script_src = location.href;
266265
} else {
267266
script_src = document.currentScript.src;
268-
}
267+
}",
268+
));
269+
assert!(contents.contains(
270+
"\
271+
async function init(input) {
269272
if (typeof input === 'undefined') {
270273
input = script_src.replace(/\\.js$/, '_bg.wasm');
271274
}",

0 commit comments

Comments
 (0)