Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaslihotzki committed Jan 27, 2023
1 parent b19060c commit d9dde32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/cli-support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl Bindgen {
wasm_interface_types,
encode_into: EncodeInto::Test,
omit_default_module_path: true,
allow_links: false,
allow_links: true,
}
}

Expand Down
12 changes: 6 additions & 6 deletions crates/macro/ui-tests/link-to.stderr
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
error: `link_to!` does not support module paths.
--> $DIR/link-to.rs:10:37
--> ui-tests/link-to.rs:10:37
|
10 | wasm_bindgen::link_to!(module = "package/foo.js")
| ^^^^^^^^^^^^^^^^

error: `link_to!` does not support module paths.
--> $DIR/link-to.rs:14:41
--> ui-tests/link-to.rs:14:41
|
14 | wasm_bindgen::link_to!(raw_module = "package/foo.js")
| ^^^^^^^^^^^^^^^^

error: failed to read file `$WORKSPACE/target/tests/wasm-bindgen-macro/src/not-found.js`: No such file or directory (os error 2)
--> $DIR/link-to.rs:18:37
error: failed to read file `$WORKSPACE/target/tests/trybuild/wasm-bindgen-macro/src/not-found.js`: No such file or directory (os error 2)
--> ui-tests/link-to.rs:18:37
|
18 | wasm_bindgen::link_to!(module = "/src/not-found.js")
| ^^^^^^^^^^^^^^^^^^^

error: `link_to!` requires a module.
--> $DIR/link-to.rs:22:5
--> ui-tests/link-to.rs:22:5
|
22 | wasm_bindgen::link_to!()
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `wasm_bindgen::link_to` (in Nightly builds, run with -Z macro-backtrace for more info)

error: unused wasm_bindgen attribute
--> $DIR/link-to.rs:28:9
--> ui-tests/link-to.rs:28:9
|
28 | js_namespace = foo
| ^^^^^^^^^^^^

0 comments on commit d9dde32

Please sign in to comment.