Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
example test with constructor arguments
describe('when creating a ThingViewModel', function () {
var ctorArgs;
ctorArgs = {
ThingApi: {
getThings: function(){}
ThingUtility: {}
it('should return an object', function () {
var thingViewModel = new ThingViewModel(ctorArgs);
expect(typeof thingViewModel).toBe('object');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment