Skip to content

Commit a3b6120

Browse files
elucidsoftclaude
andcommitted
fix: resolve biome lint/format errors in smoke tests
- Remove unused readFileSync import - Replace non-null assertion with type cast - Fix line length formatting Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2d60388 commit a3b6120

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

tests/smoke/run-smoke.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ await test("getStatus — API is reachable", async () => {
3434
await test("getAccount — auth works", async () => {
3535
const account = await client.getAccount();
3636
if (!account.email) throw new Error("No email field");
37-
console.log(` Account: ${account.email} | Plan: ${account.subType} | Active: ${account.subActive}`);
37+
console.log(
38+
` Account: ${account.email} | Plan: ${account.subType} | Active: ${account.subActive}`,
39+
);
3840
});
3941

4042
await test("listJobs — returns array", async () => {

tests/smoke/smoke.test.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { readFileSync } from "node:fs";
21
import { describe, expect, it } from "vitest";
32
import { CloudLayer } from "../../src/client.js";
43

54
const apiKey = process.env.CLOUDLAYER_API_KEY?.trim();
65

76
describe.skipIf(!apiKey)("Smoke Tests (Live API)", () => {
87
const client = new CloudLayer({
9-
apiKey: apiKey!,
8+
apiKey: apiKey as string,
109
apiVersion: "v2",
1110
});
1211

@@ -21,7 +20,14 @@ describe.skipIf(!apiKey)("Smoke Tests (Live API)", () => {
2120
expect(account).toHaveProperty("email");
2221
expect(account).toHaveProperty("uid");
2322
expect(account).toHaveProperty("subType");
24-
console.log("Account:", account.email, "| Plan:", account.subType, "| Active:", account.subActive);
23+
console.log(
24+
"Account:",
25+
account.email,
26+
"| Plan:",
27+
account.subType,
28+
"| Active:",
29+
account.subActive,
30+
);
2531
});
2632

2733
it("listJobs — returns array", async () => {

0 commit comments

Comments
 (0)