@@ -52,7 +52,7 @@ describe('server', () => {
5252
5353 it ( 'calls express listen when start is called' , ( ) => {
5454 const listen = jest . fn ( ) ;
55- loopback . mockReturnValue ( { listen } ) ;
55+ loopback . mockReturnValue ( { listen} ) ;
5656 getApp ( ) . start ( ) ;
5757 expect ( listen ) . toBeCalledWith ( expect . any ( Function ) ) ;
5858 } ) ;
@@ -61,7 +61,7 @@ describe('server', () => {
6161 const get = jest . fn ( ( ) => 'foo' ) ;
6262 const listen = jest . fn ( cb => cb ( ) ) ;
6363 const emit = jest . fn ( ) ;
64- loopback . mockReturnValue ( { listen, get, emit } ) ;
64+ loopback . mockReturnValue ( { listen, get, emit} ) ;
6565 getApp ( ) . start ( ) ;
6666 expect ( emit ) . toBeCalledWith ( 'started' ) ;
6767 } ) ;
@@ -71,7 +71,7 @@ describe('server', () => {
7171 const listen = jest . fn ( cb => cb ( ) ) ;
7272 const emit = jest . fn ( ) ;
7373 console . log = jest . fn ( ) ;
74- loopback . mockReturnValue ( { listen, get, emit } ) ;
74+ loopback . mockReturnValue ( { listen, get, emit} ) ;
7575 getApp ( ) . start ( ) ;
7676 expect ( console . log ) . toBeCalledWith (
7777 expect . any ( String ) ,
@@ -80,11 +80,13 @@ describe('server', () => {
8080 } ) ;
8181
8282 it ( 'log explorer url when start is called' , ( ) => {
83- const get = jest . fn ( term => ( term === 'url' ? 'url' : { mountPath : 'foo' } ) ) ;
83+ const get = jest . fn (
84+ term => ( term === 'url' ? 'url' : { mountPath : 'foo' } )
85+ ) ;
8486 const listen = jest . fn ( cb => cb ( ) ) ;
8587 const emit = jest . fn ( ) ;
8688 console . log = jest . fn ( ) ;
87- loopback . mockReturnValue ( { listen, get, emit } ) ;
89+ loopback . mockReturnValue ( { listen, get, emit} ) ;
8890 getApp ( ) . start ( ) ;
8991 expect ( console . log ) . toBeCalledWith (
9092 expect . any ( String ) ,
@@ -95,8 +97,8 @@ describe('server', () => {
9597
9698 it ( 'close server when close is called' , ( ) => {
9799 const close = jest . fn ( ) ;
98- const listen = jest . fn ( ( ) => ( { close } ) ) ;
99- loopback . mockReturnValue ( { listen } ) ;
100+ const listen = jest . fn ( ( ) => ( { close} ) ) ;
101+ loopback . mockReturnValue ( { listen} ) ;
100102 getApp ( ) . start ( ) ;
101103 getApp ( ) . close ( ) ;
102104 expect ( close ) . toBeCalled ( ) ;
0 commit comments