Skip to content

Commit 5ee9c57

Browse files
committed
Fix misleading success condition test name
1 parent 74dffcd commit 5ee9c57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/completion-listener.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ describe('detect commands exit conditions', () => {
255255
return expect(result).rejects.toEqual(expect.anything());
256256
});
257257

258-
it(`fails if some commands ${nameOrIndex} exit with non-0 code`, () => {
258+
it(`succeeds if command ${nameOrIndex} exits with code 0 even when others fail`, () => {
259259
const result = createController(condition).listen(commands);
260260

261261
emitFakeCloseEvent(commands[0], { exitCode: 1 });

0 commit comments

Comments
 (0)