Created
October 11, 2011 20:15
-
-
Save anoras/1279277 to your computer and use it in GitHub Desktop.
Backbone.js and sinon
This file contains hidden or 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
| Snehvit:web_app anders$ guard-jasmine | |
| Run Jasmine at http://127.0.0.1:3000/jasmine | |
| { | |
| "passed": true, | |
| "stats": { | |
| "specs": 1, | |
| "failures": 0, | |
| "time": 0.008 | |
| }, | |
| "suites": [ | |
| { | |
| "description": "Vis", | |
| "specs": [ | |
| { | |
| "description": "Vis should default to the Main router unless a route is injected.", | |
| "passed": true | |
| } | |
| ] | |
| } | |
| ] | |
| } |
This file contains hidden or 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
| describe "Vis", -> | |
| it "should default to the Main router unless a route is injected", -> | |
| spy = sinon.spy(window.Vis.Routers,"Main") | |
| window.Vis.init() | |
| expect(spy.called).toBeTruthy() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment