Last active
December 23, 2016 22:17
-
-
Save Chryus/1af70fc3dd3911a128201ad194396cca to your computer and use it in GitHub Desktop.
example es6 spec using node-flavored modules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Cell from "../../app/assets/javascripts/Cell.es6"; | |
describe("Cell", function() { | |
var cell; | |
beforeEach(() => { | |
cell = new Cell(false, 1, 1); | |
}); | |
it("should respond properly to methods", () => { | |
expect(cell.alive).toBe(false); | |
expect(cell.x).toBe(1); | |
expect(cell.y).toBe(1); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment