summaryrefslogtreecommitdiff
path: root/packages/integrations/netlify/test/functions/builders.test.js
diff options
context:
space:
mode:
authorGravatar alexanderniebuhr <alexanderniebuhr@users.noreply.github.com> 2023-10-16 14:10:41 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-10-16 14:10:41 +0000
commit3d1329414e507345b19e1dee81fe1bbff4eb3ae0 (patch)
tree69c822b1dc12f177b4919337109e6300a04df91d /packages/integrations/netlify/test/functions/builders.test.js
parent63977f5e438062b7e9302b8feff41b662bfa6231 (diff)
downloadastro-3d1329414e507345b19e1dee81fe1bbff4eb3ae0.tar.gz
astro-3d1329414e507345b19e1dee81fe1bbff4eb3ae0.tar.zst
astro-3d1329414e507345b19e1dee81fe1bbff4eb3ae0.zip
[ci] format
Diffstat (limited to 'packages/integrations/netlify/test/functions/builders.test.js')
-rw-r--r--packages/integrations/netlify/test/functions/builders.test.js44
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);
+ });
});