Created
June 17, 2016 12:31
-
-
Save lpaulger/97a8c57d5ea884da625475b868623dac to your computer and use it in GitHub Desktop.
example test with constructor arguments
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
describe('when creating a ThingViewModel', function () { | |
var ctorArgs; | |
beforeEach(function(){ | |
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