Skip to content

Commit cee09f7

Browse files
author
Simon Hofmann
committed
Added keyboard test which verifies keyTap with modifier array
1 parent 83e8de0 commit cee09f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/keyboard.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ describe("Keyboard", () => {
1010
expect(() => libnut.keyTap()).toThrowError(/A string was expected/);
1111
});
1212

13+
it("Tap a key with modifier array.", function() {
14+
expect(() => libnut.keyTap("a", ["alt", "control"])).not.toThrow();
15+
});
16+
1317
// This it won't fail if there's an issue, but it will help you identify an issue if ran locally.
1418
it("Tap all keys.", function() {
1519
const chars = "abcdefghijklmnopqrstuvwxyz1234567890,./;'[]\\".split("");

0 commit comments

Comments
 (0)