Skip to content

Instantly share code, notes, and snippets.

@matiassingers
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save matiassingers/b15dbc20bcf5f408587e to your computer and use it in GitHub Desktop.

Select an option

Save matiassingers/b15dbc20bcf5f408587e to your computer and use it in GitHub Desktop.
describe('Controller: MeletopCategoryCtrl', function(){
beforeEach(module('companionApp'));
var MeletopCategoryCtrl, scope, notificationService;
beforeEach(inject(function($rootScope, $controller, _notificationService_){
scope = $rootScope.$new();
notificationService = _notificationService_;
spyOn(notificationService, 'load');
MeletopCategoryCtrl = $controller('MeletopCategoryCtrl', {
$scope: scope,
notificationService: notificationService
});
}));
it('should have the MeletopCategoryCtrl', function () {
expect(MeletopCategoryCtrl).toBeDefined();
expect(notificationService.load).toHaveBeenCalled();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment