Skip to content

Commit da1b52a

Browse files
fix formatting
1 parent ea83be3 commit da1b52a

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

packages/wrangler/src/__tests__/r2/bucket.test.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@ const mockGetR2Bucket = vi.mocked(getR2Bucket);
1616
const mockGetR2BucketMetrics = vi.mocked(getR2BucketMetrics);
1717

1818
describe("r2 bucket info", () => {
19-
beforeEach(() => {
20-
vi.resetAllMocks();
19+
beforeEach(() => {
20+
vi.resetAllMocks();
2121

22-
mockRequireAuth.mockResolvedValue("test-account-id");
23-
mockGetR2Bucket.mockResolvedValue({
24-
name: "my-bucket-name",
25-
creation_date: "2025-06-07T15:55:22.222Z",
26-
location: "APAC",
27-
storage_class: "Standard",
28-
});
29-
mockGetR2BucketMetrics.mockResolvedValue({
30-
objectCount: 0,
31-
totalSize: "0 B",
32-
});
33-
});
22+
mockRequireAuth.mockResolvedValue("test-account-id");
23+
mockGetR2Bucket.mockResolvedValue({
24+
name: "my-bucket-name",
25+
creation_date: "2025-06-07T15:55:22.222Z",
26+
location: "APAC",
27+
storage_class: "Standard",
28+
});
29+
mockGetR2BucketMetrics.mockResolvedValue({
30+
objectCount: 0,
31+
totalSize: "0 B",
32+
});
33+
});
3434

35-
it("should output valid JSON format when --json flag is used", async () => {
36-
await runWrangler("r2 bucket info my-bucket-name --json");
37-
const json = JSON.parse(logs.out);
38-
expect(json.name).toBe("my-bucket-name");
39-
});
35+
it("should output valid JSON format when --json flag is used", async () => {
36+
await runWrangler("r2 bucket info my-bucket-name --json");
37+
const json = JSON.parse(logs.out);
38+
expect(json.name).toBe("my-bucket-name");
39+
});
4040
});

0 commit comments

Comments
 (0)