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();
|
||||
});
|
||||
|
||||
it('should respond with ok', async () => {
|
||||
it('should respond with pong', async () => {
|
||||
const admin = createMockAdmin();
|
||||
const req = createMockRequest([]);
|
||||
|
||||
@ -18,7 +18,7 @@ describe('ping', () => {
|
||||
expect(admin.rpc.sendResponse).toHaveBeenCalledWith(
|
||||
req.id,
|
||||
req.pubkey,
|
||||
'ok',
|
||||
'pong',
|
||||
expect.anything()
|
||||
);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user