summaryrefslogtreecommitdiff
path: root/packages/integrations/cloudflare/test/runtime.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/cloudflare/test/runtime.test.js')
-rw-r--r--packages/integrations/cloudflare/test/runtime.test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/integrations/cloudflare/test/runtime.test.js b/packages/integrations/cloudflare/test/runtime.test.js
index 243c1dd67..be14718e8 100644
--- a/packages/integrations/cloudflare/test/runtime.test.js
+++ b/packages/integrations/cloudflare/test/runtime.test.js
@@ -17,7 +17,7 @@ describe('Runtime Locals', () => {
});
await fixture.build();
- cli = runCLI('./fixtures/runtime/', { silent: true, port: 8793 });
+ cli = await runCLI('./fixtures/runtime/', { silent: true, port: 8793 });
await cli.ready;
});
@@ -26,13 +26,13 @@ describe('Runtime Locals', () => {
});
it('has CF and Caches', async () => {
- let res = await fetch(`http://localhost:8793/`);
+ let res = await fetch(`http://127.0.0.1:8793/`);
expect(res.status).to.equal(200);
let html = await res.text();
let $ = cheerio.load(html);
- expect($('#cf').text()).to.contain('city');
expect($('#env').text()).to.contain('SECRET_STUFF');
expect($('#env').text()).to.contain('secret');
+ expect($('#hasRuntime').text()).to.contain('true');
expect($('#hasCache').text()).to.equal('true');
});
});