Skip to content

Commit d7cc60e

Browse files
committed
Don't run numpad tests on Linux.
1 parent 8e24802 commit d7cc60e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/keyboard.js

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var test = require('tape');
22
var robot = require('..');
3+
var os = require('os');
34

45
//TODO: Need tests for keyToggle, typeString, typeStringDelayed, and setKeyboardDelay.
56

@@ -36,6 +37,12 @@ test('Tap all keys.', function(t)
3637
// This test won't fail if there's an issue, but it will help you identify an issue if ran locally.
3738
test('Tap all numpad keys.', function(t)
3839
{
40+
if (os.platform() === 'linux')
41+
{
42+
t.skip("No numpad keycodes on Linux.");
43+
t.end();
44+
}
45+
3946
var nums = '0123456789'.split('');
4047

4148
for (var x in nums)

0 commit comments

Comments
 (0)