diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/integration/run_tests.rs | 8 | ||||
-rw-r--r-- | cli/tests/testdata/run/eval_context_throw_dom_exception.js.out | 6 | ||||
-rw-r--r-- | cli/tests/testdata/run/webstorage/serialization.ts.out | 2 | ||||
-rw-r--r-- | cli/tests/unit/dom_exception_test.ts | 7 |
4 files changed, 12 insertions, 11 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index be3f74df0..0ddedbdfb 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -357,7 +357,7 @@ fn webstorage_location_shares_origin() { .wait_with_output() .unwrap(); assert!(output.status.success()); - assert_eq!(output.stdout, b"Storage { length: 1, hello: \"deno\" }\n"); + assert_eq!(output.stdout, b"Storage { hello: \"deno\", length: 1 }\n"); } // test to ensure that when a --config file is set, but no --location, that @@ -384,7 +384,7 @@ fn webstorage_config_file() { .new_command() .args("run --config run/webstorage/config_a.jsonc run/webstorage/logger.ts") .run() - .assert_matches_text("Storage { length: 1, hello: \"deno\" }\n"); + .assert_matches_text("Storage { hello: \"deno\", length: 1 }\n"); } // tests to ensure `--config` does not effect persisted storage when a @@ -401,7 +401,7 @@ fn webstorage_location_precedes_config() { context.new_command() .args("run --location https://example.com/b.ts --config run/webstorage/config_b.jsonc run/webstorage/logger.ts") .run() - .assert_matches_text("Storage { length: 1, hello: \"deno\" }\n"); + .assert_matches_text("Storage { hello: \"deno\", length: 1 }\n"); } // test to ensure that when there isn't a configuration or location, that the @@ -426,7 +426,7 @@ fn webstorage_main_module() { .new_command() .args("run run/webstorage/fixture.ts") .run() - .assert_matches_text("Storage { length: 1, hello: \"deno\" }\n"); + .assert_matches_text("Storage { hello: \"deno\", length: 1 }\n"); } itest!(_075_import_local_query_hash { diff --git a/cli/tests/testdata/run/eval_context_throw_dom_exception.js.out b/cli/tests/testdata/run/eval_context_throw_dom_exception.js.out index ac7f7c230..f7d368471 100644 --- a/cli/tests/testdata/run/eval_context_throw_dom_exception.js.out +++ b/cli/tests/testdata/run/eval_context_throw_dom_exception.js.out @@ -1,5 +1,9 @@ [Object: null prototype] { - thrown: DOMException: foo, + thrown: DOMException: foo + at new DOMException (ext:deno_web/01_dom_exception.js:[WILDCARD]) + at [WILDCARD] + at Object.evalContext (ext:core/01_core.js:[WILDCARD]) + at file:///[WILDCARD]/eval_context_throw_dom_exception.js:1:48, isNativeError: true, isCompileError: false } diff --git a/cli/tests/testdata/run/webstorage/serialization.ts.out b/cli/tests/testdata/run/webstorage/serialization.ts.out index b5581828f..4d80032f0 100644 --- a/cli/tests/testdata/run/webstorage/serialization.ts.out +++ b/cli/tests/testdata/run/webstorage/serialization.ts.out @@ -1,2 +1,2 @@ Storage {[WILDCARD] -Storage { length: 1, hello: "deno" } +Storage { hello: "deno", length: 1 } diff --git a/cli/tests/unit/dom_exception_test.ts b/cli/tests/unit/dom_exception_test.ts index d0a0b8a94..1a1cb8332 100644 --- a/cli/tests/unit/dom_exception_test.ts +++ b/cli/tests/unit/dom_exception_test.ts @@ -7,11 +7,8 @@ import { } from "./test_util.ts"; Deno.test(function customInspectFunction() { - const blob = new DOMException("test"); - assertEquals( - Deno.inspect(blob), - `DOMException: test`, - ); + const exception = new DOMException("test"); + assertEquals(Deno.inspect(exception), exception.stack); assertStringIncludes(Deno.inspect(DOMException.prototype), "DOMException"); }); |