@@ -57,7 +57,7 @@ describe('ExternalContextCreator', () => {
5757 describe ( 'when can not activate' , ( ) => {
5858 it ( 'should throw exception when "tryActivate" returns false' , ( ) => {
5959 sinon . stub ( guardsConsumer , 'tryActivate' , ( ) => false ) ;
60- expect ( proxyContext ( 1 , 2 , 3 ) ) . to . eventually . throw ( ) ;
60+ expect ( proxyContext ( 1 , 2 , 3 ) ) . to . eventually . throw ;
6161 } ) ;
6262 } ) ;
6363 describe ( 'when can activate' , ( ) => {
@@ -86,7 +86,7 @@ describe('ExternalContextCreator', () => {
8686
8787 modules . set ( moduleKey , { } ) ;
8888 ( contextCreator as any ) . modulesContainer = modules ;
89- sinon . stub ( contextCreator , 'findComponentByClassName' , ( ) => true ) ;
89+ sinon . stub ( contextCreator , 'findComponentByClassName' ) . callsFake ( ( ) => true ) ;
9090
9191 expect (
9292 contextCreator . findContextModuleName ( { name : componentKey } as any ) ,
@@ -95,7 +95,7 @@ describe('ExternalContextCreator', () => {
9595 } ) ;
9696 describe ( 'when component does not exists' , ( ) => {
9797 it ( 'should return empty string' , ( ) => {
98- sinon . stub ( contextCreator , 'findComponentByClassName' , ( ) => false ) ;
98+ sinon . stub ( contextCreator , 'findComponentByClassName' ) . callsFake ( ( ) => false ) ;
9999 expect ( contextCreator . findContextModuleName ( { } as any ) ) . to . be . eql ( '' ) ;
100100 } ) ;
101101 } ) ;
0 commit comments