diff options
author | 2023-09-28 04:48:26 +0800 | |
---|---|---|
committer | 2023-09-27 16:48:26 -0400 | |
commit | 4ed410db507723d8f8edd70aec508415d77ad2f5 (patch) | |
tree | dd876939fc708358d0675ba159e0a1d9af0fcd79 /packages/integrations/netlify/test/functions/builders.test.js | |
parent | a10a798c18512796d2c8b8ed49924dafd884e04c (diff) | |
download | astro-4ed410db507723d8f8edd70aec508415d77ad2f5.tar.gz astro-4ed410db507723d8f8edd70aec508415d77ad2f5.tar.zst astro-4ed410db507723d8f8edd70aec508415d77ad2f5.zip |
Remove Netlify adapter from core (#8574)
* New link
* More explicit
* Add placeholder package.json
* lockfile
* add keyworkds
Diffstat (limited to 'packages/integrations/netlify/test/functions/builders.test.js')
-rw-r--r-- | packages/integrations/netlify/test/functions/builders.test.js | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/packages/integrations/netlify/test/functions/builders.test.js b/packages/integrations/netlify/test/functions/builders.test.js deleted file mode 100644 index d47af92c0..000000000 --- a/packages/integrations/netlify/test/functions/builders.test.js +++ /dev/null @@ -1,37 +0,0 @@ -import { expect } from 'chai'; -import { loadFixture, testIntegration } from './test-utils.js'; -import netlifyAdapter from '../../dist/index.js'; - -describe('Builders', () => { - /** @type {import('../../../astro/test/test-utils').Fixture} */ - let fixture; - - before(async () => { - fixture = await loadFixture({ - root: new URL('./fixtures/builders/', import.meta.url).toString(), - output: 'server', - adapter: netlifyAdapter({ - dist: new URL('./fixtures/builders/dist/', import.meta.url), - builders: true, - }), - site: `http://example.com`, - integrations: [testIntegration()], - }); - await fixture.build(); - }); - - it('A route can set builders ttl', async () => { - const entryURL = new URL( - './fixtures/builders/.netlify/functions-internal/entry.mjs', - import.meta.url - ); - const { handler } = await import(entryURL); - const resp = await handler({ - httpMethod: 'GET', - headers: {}, - rawUrl: 'http://example.com/', - isBase64Encoded: false, - }); - expect(resp.ttl).to.equal(45); - }); -}); |