Skip to content

Instantly share code, notes, and snippets.

@jhartikainen
Created Jul 19, 2016
Embed
What would you like to do?
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