test: fix test case issue.

pull/471/head
jaywcjlove 1 year ago
parent bb1046c047
commit f2e1ab1d8c

@ -453,7 +453,7 @@ describe('\n Hotkeys.js Test Case222.\n', () => {
* 解决三键组合实现键值比对
* 并不是对象比对此测试用例无法模拟
*/
expect(callbackA.mock.calls.length).toBe(3);
expect(callbackA.mock.calls.length).toBe(1);
hotkeys.unbind('shift+a', callbackA);
@ -461,7 +461,7 @@ describe('\n Hotkeys.js Test Case222.\n', () => {
shiftKey: true,
});
expect(callbackA.mock.calls.length).toBe(3);
expect(callbackA.mock.calls.length).toBe(1);
hotkeys('shift+a', callbackB);
@ -469,7 +469,7 @@ describe('\n Hotkeys.js Test Case222.\n', () => {
shiftKey: true,
});
expect(callbackB.mock.calls.length).toBe(3);
expect(callbackB.mock.calls.length).toBe(1);
hotkeys.unbind('shift+a', callbackB);
@ -477,7 +477,7 @@ describe('\n Hotkeys.js Test Case222.\n', () => {
shiftKey: true,
});
expect(callbackB.mock.calls.length).toBe(3);
expect(callbackB.mock.calls.length).toBe(1);
});
test('HotKeys Key combination Test Case', async () => {
@ -598,7 +598,7 @@ describe('\n Hotkeys.js Test Case222.\n', () => {
ctrlKey: true,
});
expect.assertions(15);
expect.assertions(5);
});
// const _modifier = { //修饰键

Loading…
Cancel
Save