mirror of
https://github.com/kind-0/nsecbunkerd.git
synced 2026-05-03 07:00:11 +00:00
test: Update ping command test to expect 'pong' response
This commit is contained in:
parent
4c6bf93080
commit
35ab552e79
@ -8,7 +8,7 @@ describe('ping', () => {
|
|||||||
resetMocks();
|
resetMocks();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should respond with ok', async () => {
|
it('should respond with pong', async () => {
|
||||||
const admin = createMockAdmin();
|
const admin = createMockAdmin();
|
||||||
const req = createMockRequest([]);
|
const req = createMockRequest([]);
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ describe('ping', () => {
|
|||||||
expect(admin.rpc.sendResponse).toHaveBeenCalledWith(
|
expect(admin.rpc.sendResponse).toHaveBeenCalledWith(
|
||||||
req.id,
|
req.id,
|
||||||
req.pubkey,
|
req.pubkey,
|
||||||
'ok',
|
'pong',
|
||||||
expect.anything()
|
expect.anything()
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user