Skip to content

Commit

Permalink
Fix lints in repository.test.ts
Browse files Browse the repository at this point in the history
Signed-off-by: Simeon Widdis <[email protected]>
  • Loading branch information
Swiddis committed Jan 10, 2024
1 parent f143cb9 commit 5925769
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('Repository', () => {
jest.spyOn(fs, 'lstat').mockResolvedValue({ isDirectory: () => true } as Stats);
jest
.spyOn(IntegrationReader.prototype, 'getConfig')
.mockResolvedValue({ ok: true, value: {} as any });
.mockResolvedValue({ ok: true, value: ({} as unknown) as IntegrationConfig });

const integrations = await repository.getIntegrationList();

Expand All @@ -51,7 +51,7 @@ describe('Repository', () => {

jest
.spyOn(IntegrationReader.prototype, 'getConfig')
.mockResolvedValue({ ok: true, value: {} as any });
.mockResolvedValue({ ok: true, value: ({} as unknown) as IntegrationConfig });

const integrations = await repository.getIntegrationList();

Expand All @@ -73,7 +73,7 @@ describe('Repository', () => {
jest.spyOn(fs, 'lstat').mockResolvedValue({ isDirectory: () => true } as Stats);
jest
.spyOn(IntegrationReader.prototype, 'getConfig')
.mockResolvedValue({ ok: true, value: {} as any });
.mockResolvedValue({ ok: true, value: ({} as unknown) as IntegrationConfig });

const integration = await repository.getIntegration('integrationName');

Expand Down

0 comments on commit 5925769

Please sign in to comment.