summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/specs/bench/bench_explicit_start_end/explicit_start_and_end.out6
-rw-r--r--tests/specs/test/exit_code/main.out2
-rw-r--r--tests/specs/test/exit_code2/main.out2
-rw-r--r--tests/specs/test/exit_code3/main.out2
-rw-r--r--tests/testdata/bench/explicit_start_and_end.out6
-rw-r--r--tests/unit/testing_test.ts18
6 files changed, 18 insertions, 18 deletions
diff --git a/tests/specs/bench/bench_explicit_start_end/explicit_start_and_end.out b/tests/specs/bench/bench_explicit_start_end/explicit_start_and_end.out
index 4dc2b6179..ae1b05847 100644
--- a/tests/specs/bench/bench_explicit_start_end/explicit_start_and_end.out
+++ b/tests/specs/bench/bench_explicit_start_end/explicit_start_and_end.out
@@ -8,17 +8,17 @@ benchmark time/iter (avg) iter/s (min … max) p75
start and end [WILDCARD] [WILDCARD] [WILDCARD] ([WILDCARD] … [WILDCARD]) [WILDCARD]
start only [WILDCARD] [WILDCARD] [WILDCARD] ([WILDCARD] … [WILDCARD]) [WILDCARD]
end only [WILDCARD] [WILDCARD] [WILDCARD] ([WILDCARD] … [WILDCARD]) [WILDCARD]
-double start error: TypeError: BenchContext::start() has already been invoked.
+double start error: TypeError: BenchContext::start() has already been invoked
t.start();
^
at BenchContext.start ([WILDCARD])
at [WILDCARD]/explicit_start_and_end.ts:[WILDCARD]
-double end error: TypeError: BenchContext::end() has already been invoked.
+double end error: TypeError: BenchContext::end() has already been invoked
t.end();
^
at BenchContext.end ([WILDCARD])
at [WILDCARD]/explicit_start_and_end.ts:[WILDCARD]
-captured error: TypeError: The benchmark which this context belongs to is not being executed.
+captured error: TypeError: The benchmark which this context belongs to is not being executed
captured!.start();
^
at BenchContext.start ([WILDCARD])
diff --git a/tests/specs/test/exit_code/main.out b/tests/specs/test/exit_code/main.out
index 2562695a0..d5fe6c475 100644
--- a/tests/specs/test/exit_code/main.out
+++ b/tests/specs/test/exit_code/main.out
@@ -4,7 +4,7 @@ Deno.exitCode ... FAILED ([WILDCARD])
ERRORS
Deno.exitCode => ./main.js:1:6
-error: Error: Test case finished with exit code set to 42.
+error: Error: Test case finished with exit code set to 42
at exitSanitizer (ext:cli/40_test.js:113:15)
at async outerWrapped (ext:cli/40_test.js:134:14)
diff --git a/tests/specs/test/exit_code2/main.out b/tests/specs/test/exit_code2/main.out
index adc9cb577..494384652 100644
--- a/tests/specs/test/exit_code2/main.out
+++ b/tests/specs/test/exit_code2/main.out
@@ -11,7 +11,7 @@ error: Error
at [WILDCARD]/exit_code2/main.js:3:9
success => ./main.js:6:6
-error: Error: Test case finished with exit code set to 5.
+error: Error: Test case finished with exit code set to 5
at exitSanitizer (ext:cli/40_test.js:113:15)
at async outerWrapped (ext:cli/40_test.js:134:14)
diff --git a/tests/specs/test/exit_code3/main.out b/tests/specs/test/exit_code3/main.out
index 6e333bf42..a461db2f6 100644
--- a/tests/specs/test/exit_code3/main.out
+++ b/tests/specs/test/exit_code3/main.out
@@ -5,7 +5,7 @@ success ... ok ([WILDCARD])
ERRORS
Deno.exitCode => ./main.js:1:6
-error: Error: Test case finished with exit code set to 42.
+error: Error: Test case finished with exit code set to 42
at exitSanitizer (ext:cli/40_test.js:113:15)
at async outerWrapped (ext:cli/40_test.js:134:14)
diff --git a/tests/testdata/bench/explicit_start_and_end.out b/tests/testdata/bench/explicit_start_and_end.out
index 7248464e9..6759d39ca 100644
--- a/tests/testdata/bench/explicit_start_and_end.out
+++ b/tests/testdata/bench/explicit_start_and_end.out
@@ -8,17 +8,17 @@ benchmark time/iter (avg) iter/s (min … max) p75
start and end [WILDCARD] [WILDCARD] [WILDCARD] ([WILDCARD] … [WILDCARD]) [WILDCARD]
start only [WILDCARD] [WILDCARD] [WILDCARD] ([WILDCARD] … [WILDCARD]) [WILDCARD]
end only [WILDCARD] [WILDCARD] [WILDCARD] ([WILDCARD] … [WILDCARD]) [WILDCARD]
-double start error: Type error: BenchContext::start() has already been invoked.
+double start error: Type error: BenchContext::start() has already been invoked
t.start();
^
at BenchContext.start ([WILDCARD])
at [WILDCARD]/explicit_start_and_end.ts:[WILDCARD]
-double end error: Type error: BenchContext::end() has already been invoked.
+double end error: Type error: BenchContext::end() has already been invoked
t.end();
^
at BenchContext.end ([WILDCARD])
at [WILDCARD]/explicit_start_and_end.ts:[WILDCARD]
-captured error: Type error: The benchmark which this context belongs to is not being executed.
+captured error: Type error: The benchmark which this context belongs to is not being executed
captured!.start();
^
at BenchContext.start ([WILDCARD])
diff --git a/tests/unit/testing_test.ts b/tests/unit/testing_test.ts
index e04ab921c..51372c42b 100644
--- a/tests/unit/testing_test.ts
+++ b/tests/unit/testing_test.ts
@@ -8,7 +8,7 @@ Deno.test(function testWrongOverloads() {
Deno.test("some name", { fn: () => {} }, () => {});
},
TypeError,
- "Unexpected 'fn' field in options, test function is already provided as the third argument.",
+ "Unexpected 'fn' field in options, test function is already provided as the third argument",
);
assertThrows(
() => {
@@ -16,7 +16,7 @@ Deno.test(function testWrongOverloads() {
Deno.test("some name", { name: "some name2" }, () => {});
},
TypeError,
- "Unexpected 'name' field in options, test name is already provided as the first argument.",
+ "Unexpected 'name' field in options, test name is already provided as the first argument",
);
assertThrows(
() => {
@@ -40,7 +40,7 @@ Deno.test(function testWrongOverloads() {
Deno.test({ fn: () => {} }, function foo() {});
},
TypeError,
- "Unexpected 'fn' field in options, test function is already provided as the second argument.",
+ "Unexpected 'fn' field in options, test function is already provided as the second argument",
);
assertThrows(
() => {
@@ -48,7 +48,7 @@ Deno.test(function testWrongOverloads() {
Deno.test({});
},
TypeError,
- "Expected 'fn' field in the first argument to be a test function.",
+ "Expected 'fn' field in the first argument to be a test function",
);
assertThrows(
() => {
@@ -56,7 +56,7 @@ Deno.test(function testWrongOverloads() {
Deno.test({ fn: "boo!" });
},
TypeError,
- "Expected 'fn' field in the first argument to be a test function.",
+ "Expected 'fn' field in the first argument to be a test function",
);
});
@@ -87,7 +87,7 @@ Deno.test(async function invalidStepArguments(t) {
await (t as any).step("test");
},
TypeError,
- "Expected function for second argument.",
+ "Expected function for second argument",
);
await assertRejects(
@@ -96,7 +96,7 @@ Deno.test(async function invalidStepArguments(t) {
await (t as any).step("test", "not a function");
},
TypeError,
- "Expected function for second argument.",
+ "Expected function for second argument",
);
await assertRejects(
@@ -105,7 +105,7 @@ Deno.test(async function invalidStepArguments(t) {
await (t as any).step();
},
TypeError,
- "Expected a test definition or name and function.",
+ "Expected a test definition or name and function",
);
await assertRejects(
@@ -114,7 +114,7 @@ Deno.test(async function invalidStepArguments(t) {
await (t as any).step(() => {});
},
TypeError,
- "The step function must have a name.",
+ "The step function must have a name",
);
});