@@ -828,7 +828,6 @@ describe('ListWatchCache', () => {
828
828
} ) ;
829
829
830
830
it ( 'should not auto-restart after explicitly stopping until restarted again' , async ( ) => {
831
-
832
831
const fakeWatch = mock . mock ( Watch ) ;
833
832
const list : V1Pod [ ] = [
834
833
{
@@ -879,16 +878,19 @@ describe('ListWatchCache', () => {
879
878
880
879
await doneHandler ( null ) ;
881
880
882
- mock . verify ( fakeWatch . watch ( mock . anything ( ) , mock . anything ( ) , mock . anything ( ) , mock . anything ( ) ) ) . once ( ) ;
881
+ mock . verify (
882
+ fakeWatch . watch ( mock . anything ( ) , mock . anything ( ) , mock . anything ( ) , mock . anything ( ) ) ,
883
+ ) . once ( ) ;
883
884
884
885
// restart the informer
885
886
await cache . start ( ) ;
886
887
887
- mock . verify ( fakeWatch . watch ( mock . anything ( ) , mock . anything ( ) , mock . anything ( ) , mock . anything ( ) ) ) . twice ( ) ;
888
+ mock . verify (
889
+ fakeWatch . watch ( mock . anything ( ) , mock . anything ( ) , mock . anything ( ) , mock . anything ( ) ) ,
890
+ ) . twice ( ) ;
888
891
} ) ;
889
892
890
893
it ( 'does not auto-restart after an error' , async ( ) => {
891
-
892
894
const fakeWatch = mock . mock ( Watch ) ;
893
895
const list : V1Pod [ ] = [
894
896
{
@@ -933,14 +935,16 @@ describe('ListWatchCache', () => {
933
935
await promise ;
934
936
935
937
let errorEmitted = false ;
936
- cache . on ( ERROR , ( ) => errorEmitted = true ) ;
938
+ cache . on ( ERROR , ( ) => ( errorEmitted = true ) ) ;
937
939
938
940
const [ , , , doneHandler ] = mock . capture ( fakeWatch . watch ) . last ( ) ;
939
941
940
942
const error = new Error ( 'testing' ) ;
941
943
await doneHandler ( error ) ;
942
944
943
- mock . verify ( fakeWatch . watch ( mock . anything ( ) , mock . anything ( ) , mock . anything ( ) , mock . anything ( ) ) ) . once ( ) ;
945
+ mock . verify (
946
+ fakeWatch . watch ( mock . anything ( ) , mock . anything ( ) , mock . anything ( ) , mock . anything ( ) ) ,
947
+ ) . once ( ) ;
944
948
expect ( errorEmitted ) . to . equal ( true ) ;
945
949
} ) ;
946
950
} ) ;
0 commit comments