Skip to content

Commit f18f406

Browse files
committed
Improve assertions
1 parent 73eace5 commit f18f406

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extensions/vscode-api-tests/src/singlefolder-tests/terminal.shellIntegration.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ import { assertNoRpc } from '../utils';
136136
}
137137
await endEvent;
138138

139-
ok(events.length >= 3);
139+
ok(events.length >= 3, `should have at least 3 events ${JSON.stringify(events)}`);
140140
strictEqual(events[0], 'start');
141141
strictEqual(events.at(-1), 'end');
142142
for (let i = 1; i < events.length - 1; i++) {
@@ -156,7 +156,7 @@ import { assertNoRpc } from '../utils';
156156
}
157157
await endEvent;
158158

159-
ok(events.join('').includes('hello'));
159+
ok(events.join('').includes('hello'), `should include 'hello' in ${JSON.stringify(events)}`);
160160

161161
await closeTerminalAsync(terminal);
162162
});
@@ -191,7 +191,7 @@ import { assertNoRpc } from '../utils';
191191
]);
192192
await endEvent;
193193

194-
ok(firstReadEvents.join('').includes('hello'));
194+
ok(firstReadEvents.join('').includes('hello'), `should include 'hello' in ${JSON.stringify(firstReadEvents)}`);
195195
deepStrictEqual(firstReadEvents, secondReadEvents);
196196

197197
await closeTerminalAsync(terminal);

0 commit comments

Comments
 (0)