diff --git a/api/apps/api/test/project/project-cost-surface.e2e-spec.ts b/api/apps/api/test/project/project-cost-surface.e2e-spec.ts index 23197da334..2e6f8f06e2 100644 --- a/api/apps/api/test/project/project-cost-surface.e2e-spec.ts +++ b/api/apps/api/test/project/project-cost-surface.e2e-spec.ts @@ -136,10 +136,6 @@ describe('Cost Surface', () => { }); describe('Delete Cost Surface', () => { - beforeEach(async () => { - fixtures = await getProjectCostSurfaceFixtures(); - }); - it(`should delete the CostSurface properly and emit event`, async () => { // ARRANGE const projectId = await fixtures.GivenProject('someProject'); diff --git a/api/apps/api/test/project/project-cost-surface.fixtures.ts b/api/apps/api/test/project/project-cost-surface.fixtures.ts index eb3b328c03..9ff9c8fcc2 100644 --- a/api/apps/api/test/project/project-cost-surface.fixtures.ts +++ b/api/apps/api/test/project/project-cost-surface.fixtures.ts @@ -61,6 +61,9 @@ export const getProjectCostSurfaceFixtures = async () => { const projectsRepo: Repository = app.get( getRepositoryToken(Project), ); + const scenarioRepo: Repository = app.get( + getRepositoryToken(Scenario), + ); const projectsPuRepo: Repository = app.get( getRepositoryToken(ProjectsPuEntity, DbConnections.geoprocessingDB), );