Skip to content

Commit 9d959ea

Browse files
committed
style: lint
1 parent 755e98e commit 9d959ea

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/cache_test.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,6 @@ describe('ListWatchCache', () => {
828828
});
829829

830830
it('should not auto-restart after explicitly stopping until restarted again', async () => {
831-
832831
const fakeWatch = mock.mock(Watch);
833832
const list: V1Pod[] = [
834833
{
@@ -879,16 +878,19 @@ describe('ListWatchCache', () => {
879878

880879
await doneHandler(null);
881880

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();
883884

884885
// restart the informer
885886
await cache.start();
886887

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();
888891
});
889892

890893
it('does not auto-restart after an error', async () => {
891-
892894
const fakeWatch = mock.mock(Watch);
893895
const list: V1Pod[] = [
894896
{
@@ -933,14 +935,16 @@ describe('ListWatchCache', () => {
933935
await promise;
934936

935937
let errorEmitted = false;
936-
cache.on(ERROR, () => errorEmitted = true);
938+
cache.on(ERROR, () => (errorEmitted = true));
937939

938940
const [, , , doneHandler] = mock.capture(fakeWatch.watch).last();
939941

940942
const error = new Error('testing');
941943
await doneHandler(error);
942944

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();
944948
expect(errorEmitted).to.equal(true);
945949
});
946950
});

0 commit comments

Comments
 (0)