File tree 2 files changed +14
-6
lines changed
2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change
1
+ import { safeCb } from './util' ;
2
+
3
+ describe ( 'Util' , ( ) => {
4
+ it ( 'Has a safeCb function' , ( ) => {
5
+ let notAFunction = undefined ;
6
+
7
+ < % _ if ( filters . jasmine ) { - % >
8
+ expect ( safeCb ( notAFunction ) ) . not . toThrowError ( ) ;
9
+ < % _ } if ( filters . mocha ) { - % >
10
+ < %= expect ( ) % > safeCb ( notAFunction ) < %= to ( ) % > . not . throw ( Error ) ;
11
+ < % _ } - % >
12
+ } ) ;
13
+ } ) ;
Original file line number Diff line number Diff line change @@ -13,14 +13,9 @@ import 'zone.js/dist/fake-async-test';
13
13
var testsContext = require . context ( './client' , true , / \. ( s p e c | t e s t ) \. < % = s c r i p t E x t % > $ / ) ;
14
14
// testsContext.keys().forEach(testsContext);
15
15
// testsContext('./app/main/main.component.spec.<%= scriptExt %>');
16
+ testsContext ( './components/util.spec.<%= scriptExt %>' ) ;
16
17
< % _ if ( filters . oauth ) { - % >
17
18
testsContext ( './components/oauth-buttons/oauth-buttons.component.spec.<%= scriptExt %>' ) ;
18
- < % _ } else { - % >
19
- describe('filler', () => {
20
- it ( 'fills' , ( ) => {
21
- console . log ( 'The Filling' ) ;
22
- } ) ;
23
- } );
24
19
< % _ } - % >
25
20
26
21
import { TestBed , getTestBed } from '@angular/core/testing';
You can’t perform that action at this time.
0 commit comments