Skip to content

Commit c15603e

Browse files
committed
test(game): update socket test to use dynamic versioning
1 parent c4b8d61 commit c15603e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

electron/main/game/__tests__/game-socket.test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
it,
1010
vi,
1111
} from 'vitest';
12+
import { VERSION } from '../../../common/version.js';
1213
import type { NetSocketMock } from '../../__mocks__/net-socket.mock.js';
1314
import { mockNetConnect } from '../../__mocks__/net-socket.mock.js';
1415
import { runInBackground } from '../../async/run-in-background.js';
@@ -270,7 +271,7 @@ describe('game-socket', () => {
270271
);
271272
expect(mockSocket.writeSpy).toHaveBeenNthCalledWith(
272273
2,
273-
`FE:WRAYTH /VERSION:1.0.1.26 /P:${process.platform.toUpperCase()} /XML\n`
274+
`FE:PHOENIX /VERSION:${VERSION} /P:${process.platform.toUpperCase()} /XML\n`
274275
);
275276
expect(mockSocket.writeSpy).toHaveBeenNthCalledWith(3, `\n\n`);
276277
});

0 commit comments

Comments
 (0)