diff options
Diffstat (limited to 'packages/integrations/netlify/test/functions/builders.test.js')
-rw-r--r-- | packages/integrations/netlify/test/functions/builders.test.js | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/packages/integrations/netlify/test/functions/builders.test.js b/packages/integrations/netlify/test/functions/builders.test.js index e927527a1..281c4f3da 100644 --- a/packages/integrations/netlify/test/functions/builders.test.js +++ b/packages/integrations/netlify/test/functions/builders.test.js @@ -1,26 +1,26 @@ -import { expect } from 'chai'; -import { cli } from './test-utils.js'; -import { fileURLToPath } from 'url'; +import { expect } from "chai"; +import { cli } from "./test-utils.js"; +import { fileURLToPath } from "url"; -const root = new URL('./fixtures/builders/', import.meta.url).toString(); +const root = new URL("./fixtures/builders/", import.meta.url).toString(); -describe('Builders', () => { - before(async () => { - await cli('build', '--root', fileURLToPath(root)); - }); +describe("Builders", () => { + before(async () => { + await cli("build", "--root", fileURLToPath(root)); + }); - 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); - }); + 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); + }); }); |