Skip to content

Commit 4c2f3ab

Browse files
wassimoovinckr
authored andcommitted
fix: remove unnecessary fallback for location header in identity login and signup tests
1 parent 405abac commit 4c2f3ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/jest/integration/identity-login.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("identity login (Express/JS)", () => {
2020
})
2121

2222
expect(res.status).toBe(302)
23-
const location = res.headers.get("location") || ""
23+
const location = res.headers.get("location")
2424
expect(location).toContain("/self-service/login/browser")
2525
})
2626
})

tests/jest/integration/identity-signup.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("identity signup (Express/JS)", () => {
2020
})
2121

2222
expect(res.status).toBe(302)
23-
const location = res.headers.get("location") || ""
23+
const location = res.headers.get("location")
2424
expect(location).toContain("/self-service/registration/browser")
2525
})
2626
})

0 commit comments

Comments
 (0)