diff --git a/integration/commonjs/index.js b/integration/commonjs/index.js index abe859a2..40f00cd0 100644 --- a/integration/commonjs/index.js +++ b/integration/commonjs/index.js @@ -9,8 +9,8 @@ module.exports = async function main() { "replicate/hello-world:5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa", { input: { - text: "Claire CommonJS" - } + text: "Claire CommonJS", + }, } ); }; diff --git a/integration/commonjs/index.test.js b/integration/commonjs/index.test.js index 5ef7b63c..6e0f8b2a 100644 --- a/integration/commonjs/index.test.js +++ b/integration/commonjs/index.test.js @@ -1,8 +1,8 @@ -const { test } = require('node:test'); -const assert = require('node:assert'); -const main = require('./index'); +const { test } = require("node:test"); +const assert = require("node:assert"); +const main = require("./index"); -test('main', async () => { +test("main", async () => { const output = await main(); assert.equal(output, "hello Claire CommonJS"); }); diff --git a/integration/esm/index.js b/integration/esm/index.js index 547b726f..9264f3c0 100644 --- a/integration/esm/index.js +++ b/integration/esm/index.js @@ -9,8 +9,8 @@ export default async function main() { "replicate/hello-world:5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa", { input: { - text: "Evelyn ESM" - } + text: "Evelyn ESM", + }, } ); -}; +} diff --git a/integration/esm/index.test.js b/integration/esm/index.test.js index 2bd276fd..7549e909 100644 --- a/integration/esm/index.test.js +++ b/integration/esm/index.test.js @@ -1,8 +1,8 @@ -import { test } from 'node:test'; -import assert from 'node:assert'; -import main from './index.js'; +import { test } from "node:test"; +import assert from "node:assert"; +import main from "./index.js"; -test('main', async () => { +test("main", async () => { const output = await main(); assert.equal(output, "hello Evelyn ESM"); }); diff --git a/integration/typescript/index.test.ts b/integration/typescript/index.test.ts index be4ab90c..b7928c5d 100644 --- a/integration/typescript/index.test.ts +++ b/integration/typescript/index.test.ts @@ -1,9 +1,9 @@ -import { test } from 'node:test'; -import assert from 'node:assert'; -import main from './index.js'; +import { test } from "node:test"; +import assert from "node:assert"; +import main from "./index.js"; // Verify exported types. -import type { +import type { Status, Visibility, WebhookEventType, @@ -18,7 +18,7 @@ import type { ServerSentEvent, } from "replicate"; -test('main', async () => { +test("main", async () => { const output = await main(); assert.equal(output, "hello Tracy TypeScript"); -}); +}); diff --git a/integration/typescript/index.ts b/integration/typescript/index.ts index 8e27a3ba..e49f75c2 100644 --- a/integration/typescript/index.ts +++ b/integration/typescript/index.ts @@ -9,8 +9,8 @@ export default async function main() { "replicate/hello-world:5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa", { input: { - text: "Tracy TypeScript" - } + text: "Tracy TypeScript", + }, } ); -}; +}