Skip to content

Commit

Permalink
Bug 1862628 [wpt PR 42914] - Replace missed assert in import attrib…
Browse files Browse the repository at this point in the history
…utes tests, a=testonly

Automatic update from web-platform-tests
Replace missed `assert` in import attributes tests

Caught by gsnedders (web-platform-tests/interop#596 (comment))

I'm not sure how it's possible I replaced just two of the three `assert`s in this file 🙃
--

wpt-commits: 6593bded6f610c2616e53075d42b51d9566a7f54
wpt-pr: 42914

UltraBlame original commit: 5288385a6b6c0ce1db2f7c5bacc43e79c9743db9
  • Loading branch information
marco-c committed Nov 30, 2023
1 parent 2d74fa8 commit 915489a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ promise_test(async test => {

promise_test(test => {
return promise_rejects_js(test, TypeError,
import("./export-hello.js", { assert: { type: "notARealType"} } ),
import("./export-hello.js", { with: { type: "notARealType"} } ),
"Dynamic import with an unsupported type attribute should fail");
}, "Dynamic import with an unsupported type attribute should fail");

0 comments on commit 915489a

Please sign in to comment.