File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
crates/cli/tests/wasm-bindgen Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -258,14 +258,17 @@ fn default_module_path_target_no_modules() {
258
258
cmd. assert ( ) . success ( ) ;
259
259
let contents =
260
260
fs:: read_to_string ( out_dir. join ( "default_module_path_target_no_modules.js" ) ) . unwrap ( ) ;
261
+ assert ! ( contents. contains(
262
+ "\
263
+ if (typeof document === 'undefined') {
264
+ script_src = location.href;
265
+ } else {
266
+ script_src = document.currentScript.src;
267
+ }" ,
268
+ ) ) ;
261
269
assert ! ( contents. contains(
262
270
"\
263
271
async function init(input) {
264
- if (typeof document === 'undefined') {
265
- script_src = location.href;
266
- } else {
267
- script_src = document.currentScript.src;
268
- }
269
272
if (typeof input === 'undefined') {
270
273
input = script_src.replace(/\\ .js$/, '_bg.wasm');
271
274
}" ,
You can’t perform that action at this time.
0 commit comments