Created
May 28, 2011 14:20
-
-
Save gmoeck/996894 to your computer and use it in GitHub Desktop.
setupApplication.js
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
// This file is the setup for integration testing file | |
// This ultimetly should be moved somewhere else, but not sure yet where | |
setupApplication = function () { | |
beforeEach(function() { | |
TW.statechart.initStatechart(); | |
Fictum.setup(); | |
Fictum.addResourceType('Item', { | |
... | |
}); | |
Fictum.registerUrl(/someURL.*/g , function(resourceStore) { | |
var items = resourceStore.allOfType('Item'); | |
var sellers = [...] | |
var json = { | |
response: { | |
... | |
} | |
} | |
}; | |
return json; | |
}); | |
}); | |
afterEach(function() { | |
Fictum.teardown(); | |
TW.statechart.gotoState('closed'); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment