Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Chryus
Last active December 23, 2016 22:17
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 Chryus/1af70fc3dd3911a128201ad194396cca to your computer and use it in GitHub Desktop.
Save Chryus/1af70fc3dd3911a128201ad194396cca to your computer and use it in GitHub Desktop.
example es6 spec using node-flavored modules
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