File tree 2 files changed +4
-8
lines changed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1
1
import {
2
2
NgModule ,
3
- Injectable ,
4
- ApplicationRef , < % if ( filters . ts || filters . flow ) { % >
5
- Provider , < % } % >
3
+ ApplicationRef ,
6
4
} from '@angular/core' ;
7
5
import { BrowserModule } from '@angular/platform-browser' ;
8
6
import { HttpClientModule } from '@angular/common/http' ;
@@ -23,8 +21,6 @@ import { JwtModule } from '@auth0/angular-jwt';
23
21
import { AccountModule } from './account/account.module';
24
22
import { AdminModule } from './admin/admin.module';< % } % >
25
23
26
- import constants from './app.constants';
27
-
28
24
export function tokenGetter() {
29
25
return localStorage . getItem ( 'id_token' ) ;
30
26
}
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ describe('Component: MainComponent', function() {
48
48
49
49
it('should attach a list of things to the controller', () => {
50
50
// `GET /api/things` should be made once
51
- const req = httpTestingController . expectOne ( '/api/things' ) ;
52
- < % if ( filters . jasmine ) { % > expect ( req . request . method ) . toEqual ( 'GET' ) ; < % } else if(filters.mocha) { % >
51
+ const req = httpTestingController . expectOne ( '/api/things' ) ; < % if ( filters . jasmine ) { % >
52
+ expect ( req . request . method ) . toEqual ( 'GET' ) ; < % } else if(filters.mocha) { % >
53
53
< %= expect ( ) % > req . request . method < %= to ( ) % > . equal ( 'GET' ) ; < % } %>
54
54
55
55
// Respond with mock data
@@ -58,7 +58,7 @@ describe('Component: MainComponent', function() {
58
58
// assert that there are no outstanding requests
59
59
httpTestingController . verify ( ) ;
60
60
61
- < % if ( filters . jasmine ) { % > expect(comp.awesomeThings).toEqual(mockThings);< % } else if ( filters . mocha ) { % >
61
+ < % _ if ( filters . jasmine ) { - % > expect(comp.awesomeThings).toEqual(mockThings);< % _ } else if ( filters . mocha ) { - % >
62
62
< %= expect ( ) % > comp.awesomeThings< %= to ( ) % > .equal(mockThings);< % } % >
63
63
} ) ;
64
64
} ) ;
You can’t perform that action at this time.
0 commit comments