chore: check if ssr works on netlify (#8002)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
This commit is contained in:
parent
de8d6ad237
commit
6c6f1aef43
2 changed files with 13 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
const currentTime = new Date().getTime();
|
||||
---
|
||||
|
||||
{currentTime}
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue