Skip to content

Commit 7a85880

Browse files
committed
test: update test file imports to use .mjs extension
1 parent 5e72c78 commit 7a85880

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

test/api.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from "node:assert/strict";
22
import { describe, it } from "node:test";
33

4-
import { APIService } from "../lib/services/api.js";
4+
import { APIService } from "../lib/services/api.mjs";
55

66
describe("APIService", async () => {
77
const service = new APIService("123-test-key");

test/applications.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { readFile } from "fs/promises";
44
import path from "path";
55
import { fileURLToPath } from "url";
66

7-
import { SquareCloudAPI } from "../lib/index.js";
7+
import { SquareCloudAPI } from "../lib/index.mjs";
88

99
const __dirname = path.dirname(fileURLToPath(import.meta.url));
1010

test/files.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from "node:assert/strict";
22
import { before, describe, it } from "node:test";
33

4-
import { SquareCloudAPI } from "../lib/index.js";
4+
import { SquareCloudAPI } from "../lib/index.mjs";
55

66
describe("FilesModule", async () => {
77
const client = new SquareCloudAPI(process.env.SQUARE_API_KEY);

test/snapshots.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from "node:assert/strict";
22
import { before, describe, it } from "node:test";
33

4-
import { SquareCloudAPI } from "../lib/index.js";
4+
import { SquareCloudAPI } from "../lib/index.mjs";
55

66
describe("SnapshotsModule", async () => {
77
const client = new SquareCloudAPI(process.env.SQUARE_API_KEY);

test/user.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from "node:assert/strict";
22
import { describe, it } from "node:test";
33

4-
import { SquareCloudAPI } from "../lib/index.js";
4+
import { SquareCloudAPI } from "../lib/index.mjs";
55

66
describe("UserModule", async () => {
77
const client = new SquareCloudAPI(process.env.SQUARE_API_KEY);

0 commit comments

Comments
 (0)