Skip to content

Commit

Permalink
chore: check if ssr works on netlify (#8002)
Browse files Browse the repository at this point in the history
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
  • Loading branch information
martcl and natemoo-re authored Sep 13, 2023
1 parent de8d6ad commit 6c6f1ae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
const currentTime = new Date().getTime();
---

{currentTime}
8 changes: 8 additions & 0 deletions packages/integrations/netlify/test/hosted/hosted.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

0 comments on commit 6c6f1ae

Please sign in to comment.