File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
Expand file tree Collapse file tree 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';
1313var testsContext = require . context ( './client' , true , / \. ( s p e c | t e s t ) \. < % = s c r i p t E x t % > $ / ) ;
1414// testsContext.keys().forEach(testsContext);
1515// testsContext('./app/main/main.component.spec.<%= scriptExt %>');
16+ testsContext ( './components/util.spec.<%= scriptExt %>' ) ;
1617< % _ if ( filters . oauth ) { - % >
1718testsContext ( './components/oauth-buttons/oauth-buttons.component.spec.<%= scriptExt %>' ) ;
18- < % _ } else { - % >
19- describe('filler', () => {
20- it ( 'fills' , ( ) => {
21- console . log ( 'The Filling' ) ;
22- } ) ;
23- } );
2419< % _ } - % >
2520
2621import { TestBed , getTestBed } from '@angular/core/testing';
You can’t perform that action at this time.
0 commit comments