mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
PR review changes
This commit is contained in:
parent
ef6cea6f6c
commit
b103db681b
35 changed files with 640 additions and 125 deletions
|
|
@ -63,4 +63,32 @@ describe('admin commands', () => {
|
|||
responseCode: Data.Response_ResponseCode.RespOk,
|
||||
})));
|
||||
});
|
||||
|
||||
it('reloadConfig sends command and resolves on RespOk', () => {
|
||||
connectAndLogin();
|
||||
|
||||
AdminCommands.reloadConfig();
|
||||
|
||||
const { cmdId } = findLastAdminCommand(Data.Command_ReloadConfig_ext);
|
||||
expect(cmdId).toBeGreaterThan(0);
|
||||
|
||||
deliverMessage(buildResponseMessage(buildResponse({
|
||||
cmdId,
|
||||
responseCode: Data.Response_ResponseCode.RespOk,
|
||||
})));
|
||||
});
|
||||
|
||||
it('updateServerMessage sends command and resolves on RespOk', () => {
|
||||
connectAndLogin();
|
||||
|
||||
AdminCommands.updateServerMessage();
|
||||
|
||||
const { cmdId } = findLastAdminCommand(Data.Command_UpdateServerMessage_ext);
|
||||
expect(cmdId).toBeGreaterThan(0);
|
||||
|
||||
deliverMessage(buildResponseMessage(buildResponse({
|
||||
cmdId,
|
||||
responseCode: Data.Response_ResponseCode.RespOk,
|
||||
})));
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue