Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe('example', function () {
- var loggingServiceMock = jasmine.createSpyObj('loggingService', ['start']);
- beforeEach(function () {
- module('example', function ($provide) {
- $provide.value('loggingService', loggingServiceMock);
- });
- });
- it('should start logging service', function() {
- expect(loggingServiceMock.start).toHaveBeenCalled();
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement