From ede82af1e13cfa1ecc833fe5fb075e2739d47167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=B9=8B=E7=90=9B?= Date: Sun, 9 Oct 2022 14:52:19 +0800 Subject: [PATCH] fix test unit in question-232 --- questions/232-key-modifiers/index.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/questions/232-key-modifiers/index.test.ts b/questions/232-key-modifiers/index.test.ts index 4bc37c0..ed2d46c 100644 --- a/questions/232-key-modifiers/index.test.ts +++ b/questions/232-key-modifiers/index.test.ts @@ -15,10 +15,15 @@ describe("key modifiers", () => { await buttons[0].trigger('click') expect(printLog).toMatchInlineSnapshot('""') + printLog = "" await buttons[0].trigger('click.alt') expect(printLog).toMatchInlineSnapshot('"onClick1"') + printLog = "" await buttons[0].trigger('click.shift') expect(printLog).toMatchInlineSnapshot('"onClick1"') + printLog = "" + await buttons[0].trigger('click.shift.alt') + expect(printLog).toMatchInlineSnapshot('"onClick1"') await buttons[1].trigger('click') expect(printLog).toMatchInlineSnapshot('"onClick1"')