Skip to content

Commit c90385b

Browse files
committed
test(extension): narrow the chat access re-read's response before reading it
assert(response?.ok()) does not narrow response, which type-check refuses.
1 parent a86095a commit c90385b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/sim/scripts/test-browser-extension-e2e.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,8 @@ try {
731731
{ timeout }
732732
)
733733
const response = await request.response()
734-
assert(response?.ok(), 'The organization chat access re-read failed')
734+
assert(response, 'The organization chat access re-read got no response')
735+
assert(response.ok(), 'The organization chat access re-read failed')
735736
return toRecord(toRecord(await response.json()).chatAccess)
736737
}
737738
const isUploadCompletion = (url: URL) =>

0 commit comments

Comments
 (0)