Skip to content

Commit e4c84bc

Browse files
adjust hello.test.js
1 parent e16afc7 commit e4c84bc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

testCases/simple/runner.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ it("runs tests", async () => {
9898
"test-WithADash.js/addition": ["started", "passed"],
9999
"test.js/addition": ["started", "passed"],
100100
"withADashTheOtherWay-test.js/addition": ["started", "failed"],
101-
"hello.test.js/math": ["started", "passed"],
101+
"hello.test.js/math": ["started", "passed", "started", "passed"],
102102
"hello.test.js/math/addition": ["started", "passed"],
103103
"hello.test.js/math/subtraction": ["started", "passed"],
104104
"otherFolder/some.test.js/addition": ["started", "passed"],
@@ -126,7 +126,7 @@ it("runs tests in a file", async () => {
126126
);
127127

128128
run.expectStates({
129-
"hello.test.js/math": ["started", "passed"],
129+
"hello.test.js/math": ["started", "passed", "started", "passed"],
130130
"hello.test.js/math/addition": ["started", "passed"],
131131
"hello.test.js/math/subtraction": ["started", "passed"],
132132
"withADot.test.js/addition": ["started", "passed"],
@@ -145,7 +145,7 @@ it("runs subsets of tests", async () => {
145145
const nodeVersion = getNodeVersion();
146146
if (nodeVersion < 22) {
147147
run.expectStates({
148-
"hello.test.js/math": ["started", "passed"],
148+
"hello.test.js/math": ["started", "passed", "started", "passed"],
149149
"hello.test.js/math/addition": ["started", "passed"],
150150
// did not work in earlier versions due to nodejs/node#51577
151151
"hello.test.js/math/subtraction": ["started", "passed"],
@@ -343,7 +343,7 @@ it("shows test output", async () => {
343343
},
344344
{
345345
output: "another log",
346-
location: new vscode.Location(uri, new vscode.Position(10, 20)),
346+
location: new vscode.Location(uri, new vscode.Position(12, 20)),
347347
test: undefined,
348348
},
349349
],

testCases/simple/workspace/hello.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ describe("math", () => {
66
console.log("some log");
77
strictEqual(1 + 1, 2);
88
});
9+
});
910

11+
describe("math", () => {
1012
it(`subtraction`, async () => {
1113
process.stdout.write("another log");
1214
strictEqual(1 - 1, 0);

0 commit comments

Comments
 (0)