Skip to content

Instantly share code, notes, and snippets.

@boundsj
Created July 26, 2012 18:58
Show Gist options
  • Save boundsj/3183811 to your computer and use it in GitHub Desktop.
Save boundsj/3183811 to your computer and use it in GitHub Desktop.
How to run a jasmine test in a backbone boilerplate app
define([
// Application.
"app",
// Modules
"app/modules/todo"
],
function(app, Todo) {
console.log("test ran");
describe("test Todo model", function() {
it("is an empty todo", function() {
var todo = new Todo.Todo();
expect(todo.attributes.title).toBe("empty todo...");
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment