Created
July 26, 2012 18:58
-
-
Save boundsj/3183811 to your computer and use it in GitHub Desktop.
How to run a jasmine test in a backbone boilerplate app
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
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