Fix karma test with ui-router

This commit is contained in:
Gustavo Maximiliano Cortez 2015-04-11 12:16:16 -03:00
commit af783c1109
4 changed files with 40 additions and 11 deletions

View file

@ -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});
}));