3
3
describe ( 'Controller: FibCtrl' , function ( ) {
4
4
5
5
// load the controller's module
6
- beforeEach ( module ( 'eShellApp' ) , [ 'eywa' ] ) ;
7
- // beforeEach(angular.module('eywa'));
6
+ beforeEach ( module ( 'eShellApp' ) ) ;
8
7
9
- var FibCtrl , scope , eywa , checker , $httpBackend ;
8
+ var FibCtrl , scope , checker , $httpBackend ;
10
9
11
10
// Initialize the controller and a mock scope
12
11
beforeEach ( inject ( function ( $controller , $rootScope , _$httpBackend_ , _checker_ ) {
@@ -18,7 +17,6 @@ describe('Controller: FibCtrl', function () {
18
17
FibCtrl = $controller ( 'FibCtrl' , {
19
18
$scope : scope
20
19
} ) ;
21
- $httpBackend . flush ( ) ;
22
20
23
21
scope . data = {
24
22
text : 'AngularJS is originally created in [[1]] by [[2]]' ,
@@ -32,11 +30,6 @@ describe('Controller: FibCtrl', function () {
32
30
} ;
33
31
} ) ) ;
34
32
35
- afterEach ( function ( ) {
36
- $httpBackend . verifyNoOutstandingExpectation ( ) ;
37
- $httpBackend . verifyNoOutstandingRequest ( ) ;
38
- } ) ;
39
-
40
33
it ( 'should set class' , function ( ) {
41
34
expect ( scope . setClass ( true ) ) . toBe ( 'success' ) ;
42
35
expect ( scope . setClass ( false ) ) . toBe ( 'error' ) ;
0 commit comments