Skip to content

Commit

Permalink
Update cost surfaces cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
yulia-bel authored and hotzevzl committed Oct 6, 2023
1 parent caf1677 commit 91f78a7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ export const getFixtures = async (app: INestApplication) => {
},

cleanup: async () => {
await geoEntityManager.query(`DELETE FROM cost_surface_pu_data`);
await geoEntityManager.query(`DELETE FROM cost_surface_pu_data WHERE cost_surface_id = $1`, [costSurfaceId]);
await geoEntityManager.query(`DELETE FROM projects_pu`);
await apiEntityManager.query(`DELETE FROM cost_surfaces`);
await apiEntityManager.query(`DELETE FROM cost_surfaces WHERE id = $1`, [costSurfaceId]);
await apiEntityManager.query(`DELETE FROM projects`);
await apiEntityManager.query(`DELETE FROM organizations`);
},
Expand Down

0 comments on commit 91f78a7

Please sign in to comment.