From e68334decfae012a0686fe015fe16ec2616e1b2f Mon Sep 17 00:00:00 2001 From: Alfred Rosenthal Date: Mon, 28 Aug 2023 13:35:10 -0700 Subject: [PATCH] removed old test --- .../repositories/project-repository.test.ts | 40 ------------------- 1 file changed, 40 deletions(-) diff --git a/api/src/repositories/project-repository.test.ts b/api/src/repositories/project-repository.test.ts index 12ae34b5ef..be9b2bb7bb 100644 --- a/api/src/repositories/project-repository.test.ts +++ b/api/src/repositories/project-repository.test.ts @@ -493,33 +493,6 @@ describe('ProjectRepository', () => { }); }); - describe('insertType', () => { - it('should return result', async () => { - const mockResponse = ({ rows: [{ id: 1 }], rowCount: 1 } as any) as Promise>; - const dbConnection = getMockDBConnection({ sql: () => mockResponse }); - - const repository = new ProjectRepository(dbConnection); - - const response = await repository.insertType(1, 1); - - expect(response).to.eql(1); - }); - - it('should throw an error', async () => { - const mockResponse = ({ rows: [], rowCount: 0 } as any) as Promise>; - const dbConnection = getMockDBConnection({ sql: () => mockResponse }); - - const repository = new ProjectRepository(dbConnection); - - try { - await repository.insertType(1, 1); - expect.fail(); - } catch (error) { - expect((error as Error).message).to.equal('Failed to insert project type data'); - } - }); - }); - describe('deleteIUCNData', () => { it('should return result', async () => { const mockResponse = ({ rows: [{ id: 1 }], rowCount: 1 } as any) as Promise>; @@ -559,19 +532,6 @@ describe('ProjectRepository', () => { }); }); - describe('deleteActivityData', () => { - it('should return result', async () => { - const mockResponse = ({ rows: [{ id: 1 }], rowCount: 1 } as any) as Promise>; - const dbConnection = getMockDBConnection({ sql: () => mockResponse }); - - const repository = new ProjectRepository(dbConnection); - - const response = await repository.deleteTypeData(1); - - expect(response).to.eql(undefined); - }); - }); - describe('deleteProject', () => { it('should return result', async () => { const mockResponse = ({ rows: [{ id: 1 }], rowCount: 1 } as any) as Promise>;