Skip to content

Commit

Permalink
Updated to match code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Jul 19, 2015
1 parent c982f0a commit 1208cf8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ var test = require('tape');
var robot = require('..');
var lastKnownPos;

test('get the initial mouse position', function(t) {
t.plan(3);
t.ok(lastKnownPos = robot.getMousePos(), 'successfully retrieved mouse position');
t.ok(lastKnownPos.x !== undefined, 'mousepos.x is a valid value');
t.ok(lastKnownPos.y !== undefined, 'mousepos.y is a valid value');
});
test('Get the initial mouse position.', function(t)
{
t.plan(3);
t.ok(lastKnownPos = robot.getMousePos(), 'successfully retrieved mouse position.');
t.ok(lastKnownPos.x !== undefined, 'mousepos.x is a valid value.');
t.ok(lastKnownPos.y !== undefined, 'mousepos.y is a valid value.');
});

0 comments on commit 1208cf8

Please sign in to comment.