Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Oct 21, 2024
1 parent ca9a3a2 commit ebc1b2f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ routes.set('/backend/timeout', async () => {
);
routes.set('/implicit-dynamic-backend/dynamic-backends-enabled', async () => {
allowDynamicBackends(true);
await assertResolves(() => fetch('https://http-me.glitch.me/headers'));
await assertResolves(async () => {
const res = await fetch('https://http-me.glitch.me/headers');
const backend = new Backend(res.backend);
strictEqual(backend.isSSL, true);
});
await assertResolves(() => fetch('https://www.fastly.com'));
enforceExplicitBackends();
await assertRejects(() => fetch('https://www.fastly.com'));
Expand Down

0 comments on commit ebc1b2f

Please sign in to comment.