From d7cc60ee245fdb8e3a14d165a40a9851bab3ae7b Mon Sep 17 00:00:00 2001 From: Jason Stallings Date: Tue, 24 May 2016 23:09:28 -0500 Subject: [PATCH] Don't run numpad tests on Linux. --- test/keyboard.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/keyboard.js b/test/keyboard.js index 4531b9fc..06f77144 100644 --- a/test/keyboard.js +++ b/test/keyboard.js @@ -1,5 +1,6 @@ var test = require('tape'); var robot = require('..'); +var os = require('os'); //TODO: Need tests for keyToggle, typeString, typeStringDelayed, and setKeyboardDelay. @@ -36,6 +37,12 @@ test('Tap all keys.', function(t) // This test won't fail if there's an issue, but it will help you identify an issue if ran locally. test('Tap all numpad keys.', function(t) { + if (os.platform() === 'linux') + { + t.skip("No numpad keycodes on Linux."); + t.end(); + } + var nums = '0123456789'.split(''); for (var x in nums)