Skip to content

Instantly share code, notes, and snippets.

@froots
Created July 23, 2012 15:39
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 froots/3164285 to your computer and use it in GitHub Desktop.
Save froots/3164285 to your computer and use it in GitHub Desktop.
Require.js and Jasmine
define([
"modules/todo",
"modules/todos"
], function(Todo, Todos) {
describe("Todo", function() {
it("should set an attribute", function() {
var todo = new Todo({ title: "Do washing" });
expect(todo.get("title")).toEqual("Do washing");
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment