Skip to content

Instantly share code, notes, and snippets.

@gmoeck
Created May 28, 2011 14:20
Show Gist options
  • Save gmoeck/996894 to your computer and use it in GitHub Desktop.
Save gmoeck/996894 to your computer and use it in GitHub Desktop.
setupApplication.js
// 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