diff options
author | 2023-09-13 18:30:23 +0200 | |
---|---|---|
committer | 2023-09-13 18:30:23 +0200 | |
commit | 6c6f1aef43bd213a010df1fac47ec39b884d3abc (patch) | |
tree | fb7086ebd98557e29beaf8504350b96552135ccf /packages/integrations/netlify/test/hosted/hosted.test.js | |
parent | de8d6ad2376fef8e6d8c02e590c1322dbfa1a7a9 (diff) | |
download | astro-6c6f1aef43bd213a010df1fac47ec39b884d3abc.tar.gz astro-6c6f1aef43bd213a010df1fac47ec39b884d3abc.tar.zst astro-6c6f1aef43bd213a010df1fac47ec39b884d3abc.zip |
chore: check if ssr works on netlify (#8002)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/netlify/test/hosted/hosted.test.js')
-rw-r--r-- | packages/integrations/netlify/test/hosted/hosted.test.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/integrations/netlify/test/hosted/hosted.test.js b/packages/integrations/netlify/test/hosted/hosted.test.js index 0ce531e4d..2dc8c67ce 100644 --- a/packages/integrations/netlify/test/hosted/hosted.test.js +++ b/packages/integrations/netlify/test/hosted/hosted.test.js @@ -10,4 +10,12 @@ describe('Hosted Netlify Tests', () => { expect(image.status).to.equal(200); }); + + it('Server returns fresh content', async () => { + const responseOne = await fetch(NETLIFY_TEST_URL + '/time'); + + const responseTwo = await fetch(NETLIFY_TEST_URL + '/time'); + + expect(responseOne.body).to.not.equal(responseTwo.body); + }); }); |