Skip to content

Commit

Permalink
refactor: Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed May 27, 2022
1 parent e768900 commit 41190a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ describe('TypegooseQueryService', () => {
const entity = TEST_DISCRIMINATED_ENTITIES[0];
const queryService = moduleRef.get(TestDiscriminatedEntityService);
const found = await queryService.findById(entity._id.toString());
expect(convertDocument(found!)).toEqual(entity);
expect(convertDocument(found)).toEqual(entity);
});

it('return undefined if not found', async () => {
Expand All @@ -368,7 +368,7 @@ describe('TypegooseQueryService', () => {
const found = await queryService.findById(entity._id.toString(), {
filter: { stringType: { eq: entity.stringType } }
});
expect(convertDocument(found!)).toEqual(entity);
expect(convertDocument(found)).toEqual(entity);
});

it('should return an undefined if an entity with the pk and filter is not found', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ describe('TypegooseQueryService', () => {
const entity = TEST_ENTITIES[0];
const queryService = moduleRef.get(TestEntityService);
const found = await queryService.findById(entity._id.toHexString());
expect(convertDocument(found!)).toEqual(entity);
expect(convertDocument(found)).toEqual(entity);
});

it('return undefined if not found', async () => {
Expand All @@ -356,7 +356,7 @@ describe('TypegooseQueryService', () => {
const found = await queryService.findById(entity._id.toHexString(), {
filter: { stringType: { eq: entity.stringType } }
});
expect(convertDocument(found!)).toEqual(entity);
expect(convertDocument(found)).toEqual(entity);
});

it('should return an undefined if an entity with the pk and filter is not found', async () => {
Expand Down

0 comments on commit 41190a1

Please sign in to comment.