diff options
Diffstat (limited to 'tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/non-object.any.js')
-rw-r--r-- | tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/non-object.any.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/non-object.any.js b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/non-object.any.js index 398da56595f..dcbe60f2c2f 100644 --- a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/non-object.any.js +++ b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/non-object.any.js @@ -3,12 +3,12 @@ for (const value of [null, true, false, "string"]) { promise_test(async t => { const result = await import(`./${value}.json`); - assert_equals(result, value); + assert_equals(result.default, value); }, `Non-object: ${value}`); } promise_test(async t => { const result = await import("./array.json"); - assert_array_equals(result, ["en", "try"]); + assert_array_equals(result.default, ["en", "try"]); }, "Non-object: array"); |