refactor: extract customShortcutDialog component #1383
Annotations
4 errors and 2 warnings
composables/user/tests/shortcutKey.spec.ts > user defined shortcut key > shortcut key data > should be equal to cache data if localStorage has cache:
apps/client/composables/user/tests/shortcutKey.spec.ts#L35
AssertionError: expected { sound: 'Ctrl+\'', …(5) } to deeply equal { sound: 'Ctrl+s', …(5) }
- Expected
+ Received
Object {
- "answer": "Ctrl+8",
+ "answer": "Ctrl+;",
"mastered": "Ctrl+m",
"pause": "Ctrl+p",
"previous": "Ctrl+,",
"skip": "Ctrl+.",
- "sound": "Ctrl+s",
+ "sound": "Ctrl+'",
}
❯ composables/user/tests/shortcutKey.spec.ts:35:34
|
composables/user/tests/shortcutKey.spec.ts > user defined shortcut key > shortcut key set > should be the shortcut key is set successfully when the dialog is open (combination key):
apps/client/composables/user/tests/shortcutKey.spec.ts#L130
Error: Snapshot `user defined shortcut key > shortcut key set > should be the shortcut key is set successfully when the dialog is open (combination key) 1` mismatched
- Expected
+ Received
- "{"sound":"Ctrl+'","answer":"Ctrl+s","skip":"Ctrl+.","previous":"Ctrl+,","mastered":"Ctrl+m","pause":"Ctrl+p"}"
+ "{"sound":"Tab","answer":"Ctrl+s","skip":"Ctrl+.","previous":"Ctrl+,","mastered":"Ctrl+m","pause":"Ctrl+p"}"
❯ composables/user/tests/shortcutKey.spec.ts:130:51
|
composables/user/tests/shortcutKey.spec.ts > user defined shortcut key > shortcut key set > should be not set successfully with the same shortcut:
apps/client/composables/user/tests/shortcutKey.spec.ts#L173
AssertionError: expected { sound: 'Tab', …(5) } to match object { answer: 'Command+s', …(1) }
(4 matching properties omitted from actual)
- Expected
+ Received
Object {
"answer": "Command+s",
- "sound": "Ctrl+'",
+ "sound": "Tab",
}
❯ composables/user/tests/shortcutKey.spec.ts:173:34
|
test
Process completed with exit code 1.
|
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|