Skip to content

Commit 00ab140

Browse files
committed
test(cli.js): Add the watcher rerunMessage into assertion
1 parent 6de3a6e commit 00ab140

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/cli.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,9 @@ test('watcher does not rerun test files when they write snapshot files', t => {
325325
killed = true;
326326
}, 500);
327327
} else if (passedFirst && !killed) {
328-
t.is(buffer.replace(/\s/g, ''), '');
328+
const rerunMessage = `To rerun all tests, type 'r', followed by Enter\nTo update snapshots used in the previous tests, type 'u', followed by Enter\n`;
329+
const rerunMessageWithoutWhitespace = buffer.replace(/\s/g, '')
330+
t.is(buffer.replace(/\s/g, ''), rerunMessageWithoutWhitespace);
329331
}
330332
});
331333
});

0 commit comments

Comments
 (0)