Fix karma test with ui-router
This commit is contained in:
parent
5ebb0b7195
commit
af783c1109
4 changed files with 40 additions and 11 deletions
|
|
@ -1,10 +1,12 @@
|
|||
'use strict';
|
||||
|
||||
describe('menuController', function(){
|
||||
var scope, controller;
|
||||
var state, scope, controller;
|
||||
|
||||
beforeEach(angular.mock.module('copayApp.controllers'));
|
||||
beforeEach(angular.mock.inject(function($rootScope, $controller){
|
||||
beforeEach(angular.mock.module('stateMock'));
|
||||
beforeEach(angular.mock.inject(function($rootScope, $controller, $state){
|
||||
state = $state;
|
||||
scope = $rootScope.$new();
|
||||
controller = $controller('menuController', {$scope: scope});
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue