From 63d5677f26051ba7434929b767c243ed327f536e Mon Sep 17 00:00:00 2001 From: Tony Date: Sun, 3 Jan 2021 12:31:23 +0800 Subject: [PATCH] style: fix with tslint --- src/BaseFirestoreRepository.spec.ts | 20 +++++++++++--------- src/types.ts | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/BaseFirestoreRepository.spec.ts b/src/BaseFirestoreRepository.spec.ts index 8886bbfe..1ee5e8c3 100644 --- a/src/BaseFirestoreRepository.spec.ts +++ b/src/BaseFirestoreRepository.spec.ts @@ -400,10 +400,10 @@ describe('BaseFirestoreRepository', () => { }); it('must filter with whereNotEqualTo', async () => { - const list = await bandRepository.whereNotEqualTo('name', 'Porcupine Tree').find(); - expect(list.length).toEqual(1); - expect(list[0].formationYear).toEqual(1983); - }); + const list = await bandRepository.whereNotEqualTo('name', 'Porcupine Tree').find(); + expect(list.length).toEqual(1); + expect(list[0].formationYear).toEqual(1983); + }); it('must filter with whereGreaterThan', async () => { const list = await bandRepository.whereGreaterThan('formationYear', 1983).find(); @@ -444,8 +444,8 @@ describe('BaseFirestoreRepository', () => { }); it('must filter with whereNotIn', async () => { - const list = await bandRepository.whereNotIn('formationYear', [1965]).find(); - expect(list.length).toEqual(2); + const list = await bandRepository.whereNotIn('formationYear', [1965]).find(); + expect(list.length).toEqual(2); }); it('should throw with whereArrayContainsAny and more than 10 items in val array', async () => { @@ -463,9 +463,11 @@ describe('BaseFirestoreRepository', () => { }); it('should throw with whereNotIn and more than 10 items in val array', async () => { - expect(async () => { - await bandRepository.whereNotIn('formationYear', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]).find(); - }).rejects.toThrow(Error); + expect(async () => { + await bandRepository + .whereNotIn('formationYear', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]) + .find(); + }).rejects.toThrow(Error); }); it('must filter with two or more operators', async () => { diff --git a/src/types.ts b/src/types.ts index 7a2ea5ff..f4346b72 100644 --- a/src/types.ts +++ b/src/types.ts @@ -18,7 +18,7 @@ export enum FirestoreOperators { arrayContains = 'array-contains', arrayContainsAny = 'array-contains-any', in = 'in', - notIn = 'not-in' + notIn = 'not-in', } export interface IFireOrmQueryLine {