Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions integration/commonjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ module.exports = async function main() {
"replicate/hello-world:5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa",
{
input: {
text: "Claire CommonJS"
}
text: "Claire CommonJS",
},
}
);
};
8 changes: 4 additions & 4 deletions integration/commonjs/index.test.js
Original file line number Diff line number Diff line change
@@ -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");
});
6 changes: 3 additions & 3 deletions integration/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export default async function main() {
"replicate/hello-world:5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa",
{
input: {
text: "Evelyn ESM"
}
text: "Evelyn ESM",
},
}
);
};
}
8 changes: 4 additions & 4 deletions integration/esm/index.test.js
Original file line number Diff line number Diff line change
@@ -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");
});
12 changes: 6 additions & 6 deletions integration/typescript/index.test.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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");
});
});
6 changes: 3 additions & 3 deletions integration/typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export default async function main() {
"replicate/hello-world:5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa",
{
input: {
text: "Tracy TypeScript"
}
text: "Tracy TypeScript",
},
}
);
};
}