Skip to content

Commit 754898d

Browse files
committed
test(MongoInstance): rename a test to better suit what it tests
1 parent d066643 commit 754898d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/mongodb-memory-server-core/src/util/__tests__/MongoInstance.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ describe('MongodbInstance', () => {
360360
expect(event.message).toMatchSnapshot();
361361
});
362362

363-
it('should emit "instanceError" with non-0 or non-12 code', () => {
363+
it('should emit "instanceError" with non-0 or signal', () => {
364364
// test code non-0
365365
{
366366
events.clear();

packages/mongodb-memory-server-core/src/util/__tests__/__snapshots__/MongoInstance.test.ts.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ exports[`MongodbInstance test events closeHandler() should emit "instanceError"
2222
The Process Exited with SIGILL, which mean illegal instruction, which is commonly thrown in mongodb 5.0+ when not having AVX available on the CPU"
2323
`;
2424

25-
exports[`MongodbInstance test events closeHandler() should emit "instanceError" with non-0 or non-12 code 1`] = `"Instance closed unexpectedly with code \\"1\\" and signal \\"null\\""`;
25+
exports[`MongodbInstance test events closeHandler() should emit "instanceError" with non-0 or signal 1`] = `"Instance closed unexpectedly with code \\"1\\" and signal \\"null\\""`;
2626

27-
exports[`MongodbInstance test events closeHandler() should emit "instanceError" with non-0 or non-12 code 2`] = `"Instance closed unexpectedly with code \\"null\\" and signal \\"SIG\\""`;
27+
exports[`MongodbInstance test events closeHandler() should emit "instanceError" with non-0 or signal 2`] = `"Instance closed unexpectedly with code \\"null\\" and signal \\"SIG\\""`;
2828

2929
exports[`MongodbInstance test events stdoutHandler() should emit "instanceError" when "excepetion in initAndListen" is thrown DBException in initAndListen 1`] = `
3030
"Instance Failed to start with \\"DBException in initAndListen\\". Original Error:

0 commit comments

Comments
 (0)