mirror of
https://github.com/block/buzz.git
synced 2026-10-31 06:21:34 +00:00
test(e2e): allow hash-route bootstrap responses
Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
This commit is contained in:
@@ -37,11 +37,11 @@ export async function bootstrapE2ePage(
|
||||
throw bootstrapFailure(expectedOrigin, page.url(), error);
|
||||
}
|
||||
|
||||
if (!response?.ok()) {
|
||||
if (response && !response.ok()) {
|
||||
throw bootstrapFailure(
|
||||
expectedOrigin,
|
||||
page.url(),
|
||||
`navigation returned HTTP ${response?.status() ?? "no response"}`,
|
||||
`navigation returned HTTP ${response.status()}`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -37,11 +37,11 @@ export async function bootstrapE2ePage(
|
||||
throw bootstrapFailure(expectedOrigin, page.url(), error);
|
||||
}
|
||||
|
||||
if (!response?.ok()) {
|
||||
if (response && !response.ok()) {
|
||||
throw bootstrapFailure(
|
||||
expectedOrigin,
|
||||
page.url(),
|
||||
`navigation returned HTTP ${response?.status() ?? "no response"}`,
|
||||
`navigation returned HTTP ${response.status()}`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user