We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f4b043 commit 86714bfCopy full SHA for 86714bf
test/all.js
@@ -0,0 +1 @@
1
+require('./mouse');
test/mouse.js
@@ -0,0 +1,10 @@
+var test = require('tape');
2
+var robot = require('..');
3
+var lastKnownPos;
4
+
5
+test('get the initial mouse position', function(t) {
6
+ t.plan(3);
7
+ t.ok(lastKnownPos = robot.getMousePos(), 'successfully retrieved mouse position');
8
+ t.ok(lastKnownPos.x !== undefined, 'mousepos.x is a valid value');
9
+ t.ok(lastKnownPos.y !== undefined, 'mousepos.y is a valid value');
10
+});
0 commit comments