Skip to content

Commit 00549b9

Browse files
authored
Merge pull request #9 from mfiscus/mfiscus/add-tests
Update reflector callsign in tests to URF847
2 parents 1eb730e + 1bca06e commit 00549b9

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎tests/integration/commands/lastheard.test.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ const command = require('../../../commands/reflector/lastheard');
2222

2323
const mockMetaResponse = () => ({
2424
statusCode: 200,
25-
body: { json: jest.fn().mockResolvedValue({ reflector_callsign: 'XRF001' }) },
25+
body: { json: jest.fn().mockResolvedValue({ reflector_callsign: 'URF847' }) },
2626
});
2727

2828
const makeStation = (callsign) => ({
2929
callsign,
30-
vianode: 'XRF001A',
30+
vianode: 'URF847 A',
3131
callsignsuffix: '',
3232
onmodule: 'A',
3333
lastheard: new Date(Date.now() - 60000).toISOString(),

‎tests/integration/commands/links.test.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const command = require('../../../commands/reflector/links');
2121

2222
const mockMetaResponse = () => ({
2323
statusCode: 200,
24-
body: { json: jest.fn().mockResolvedValue({ reflector_callsign: 'XRF001' }) },
24+
body: { json: jest.fn().mockResolvedValue({ reflector_callsign: 'URF847' }) },
2525
});
2626

2727
const mockLinksResponse = (links) => ({

‎tests/integration/commands/peers.test.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const command = require('../../../commands/reflector/peers');
2121

2222
const mockMetaResponse = () => ({
2323
statusCode: 200,
24-
body: { json: jest.fn().mockResolvedValue({ reflector_callsign: 'XRF001' }) },
24+
body: { json: jest.fn().mockResolvedValue({ reflector_callsign: 'URF847' }) },
2525
});
2626

2727
const mockPeersResponse = (peers) => ({

‎tests/integration/commands/status.test.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const command = require('../../../commands/reflector/status');
2121

2222
const mockMetaResponse = () => ({
2323
statusCode: 200,
24-
body: { json: jest.fn().mockResolvedValue({ reflector_callsign: 'XRF001' }) },
24+
body: { json: jest.fn().mockResolvedValue({ reflector_callsign: 'URF847' }) },
2525
});
2626

2727
const mockStatusResponse = (data) => ({

0 commit comments

Comments
 (0)