diff options
author | 2024-02-16 18:57:14 +0900 | |
---|---|---|
committer | 2024-02-16 10:57:14 +0100 | |
commit | 5bbbeaff265de7e663124fa19170764b3d0372ba (patch) | |
tree | 63123f461888957d115ca7cabd2ef9aeacabd417 /packages/integrations/netlify/test/hosted/hosted.test.js | |
parent | 7c676f3a4d63d5273bf91002e1af1f35027313af (diff) | |
download | astro-5bbbeaff265de7e663124fa19170764b3d0372ba.tar.gz astro-5bbbeaff265de7e663124fa19170764b3d0372ba.tar.zst astro-5bbbeaff265de7e663124fa19170764b3d0372ba.zip |
chore(netlify): use Node.js for testing (#158)
Diffstat (limited to 'packages/integrations/netlify/test/hosted/hosted.test.js')
-rw-r--r-- | packages/integrations/netlify/test/hosted/hosted.test.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/integrations/netlify/test/hosted/hosted.test.js b/packages/integrations/netlify/test/hosted/hosted.test.js index 2a53ce806..95d808031 100644 --- a/packages/integrations/netlify/test/hosted/hosted.test.js +++ b/packages/integrations/netlify/test/hosted/hosted.test.js @@ -1,4 +1,5 @@ -import { expect } from 'chai'; +import { describe, it, before } from 'node:test'; +import * as assert from 'node:assert/strict'; const NETLIFY_TEST_URL = 'https://curious-boba-495d6d.netlify.app'; @@ -8,7 +9,7 @@ describe('Hosted Netlify Tests', () => { `${NETLIFY_TEST_URL}/_image?href=%2F_astro%2Fpenguin.e9c64733.png&w=300&f=webp` ); - expect(image.status).to.equal(200); + assert.equal(image.status,200); }); it('Server returns fresh content', async () => { @@ -16,6 +17,6 @@ describe('Hosted Netlify Tests', () => { const responseTwo = await fetch(`${NETLIFY_TEST_URL}/time`); - expect(responseOne.body).to.not.equal(responseTwo.body); + assert.notEqual(responseOne.body,responseTwo.body); }); }); |