Skip to content

Commit 0ff989a

Browse files
committed
Fix test typing for an optional header
1 parent b678391 commit 0ff989a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/functional/auth.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ test.group('Sessions', (group) => {
225225
.withSession({ session_version: 0 })
226226
.redirects(0)
227227
stale.assertStatus(302)
228-
assert.match(stale.header('location'), /^\/login/)
228+
assert.match(stale.header('location') ?? '', /^\/login/)
229229

230230
// The current session was re-stamped and keeps working.
231231
const current = await client.get('/dashboard').loginAs(user).withSession({ session_version: 1 })

0 commit comments

Comments
 (0)