Skip to content

Instantly share code, notes, and snippets.

@jhartikainen
Created July 19, 2016 03:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhartikainen/873c5641962f60cb3a79584c7fb88ef1 to your computer and use it in GitHub Desktop.
Save jhartikainen/873c5641962f60cb3a79584c7fb88ef1 to your computer and use it in GitHub Desktop.
it('"moveRight()" should increment the "x" propety by 1', function () {
var blocky = new Block(15, 30);
blocky.moveRight();
assert.equal(blocky.x, 16);
});
//....vs....
it('"moveRight()" should increment the "x" propety by 1', function () {
var startingX = 15;
var endingX = startingX + 1;
var blocky = new Block(startingX, 30);
blocky.moveRight();
assert.equal(blocky.x, endingX);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment