Skip to content

Commit

Permalink
update backend tests to not use auth for retrieve
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyjablonski committed Sep 16, 2021
1 parent d680b30 commit ff72755
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions backend/core/test/jurisdictions/jurisdictions.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ describe("Jurisdictions", () => {

const getById = await supertest(app.getHttpServer())
.get(`/jurisdictions/${res.body.id}`)
.set(...setAuthorization(adminAccesstoken))
.expect(200)
expect(getById.body.name).toBe("test")
})
Expand All @@ -84,11 +83,10 @@ describe("Jurisdictions", () => {
expect(res.body).toHaveProperty("name")
expect(res.body.name).toBe("test2")

const getById = await supertest(app.getHttpServer())
const getByName = await supertest(app.getHttpServer())
.get(`/jurisdictions/byName/${res.body.name}`)
.set(...setAuthorization(adminAccesstoken))
.expect(200)
expect(getById.body.name).toBe("test2")
expect(getByName.body.name).toBe("test2")
})

afterEach(() => {
Expand Down

0 comments on commit ff72755

Please sign in to comment.