Skip to content

Commit ede82af

Browse files
author
赵之琛
committed
fix test unit in question-232
1 parent ae951fc commit ede82af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

questions/232-key-modifiers/index.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@ describe("key modifiers", () => {
1515

1616
await buttons[0].trigger('click')
1717
expect(printLog).toMatchInlineSnapshot('""')
18+
printLog = ""
1819
await buttons[0].trigger('click.alt')
1920
expect(printLog).toMatchInlineSnapshot('"onClick1"')
21+
printLog = ""
2022
await buttons[0].trigger('click.shift')
2123
expect(printLog).toMatchInlineSnapshot('"onClick1"')
24+
printLog = ""
25+
await buttons[0].trigger('click.shift.alt')
26+
expect(printLog).toMatchInlineSnapshot('"onClick1"')
2227

2328
await buttons[1].trigger('click')
2429
expect(printLog).toMatchInlineSnapshot('"onClick1"')

0 commit comments

Comments
 (0)