chore: check if ssr works on netlify (#8002)

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
This commit is contained in:
Martin Clementz 2023-09-13 18:30:23 +02:00 committed by GitHub
parent de8d6ad237
commit 6c6f1aef43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
const currentTime = new Date().getTime();
---
{currentTime}

View file

@ -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);
});
});