Skip to content

Commit 5aefc21

Browse files
fix(test): remove useless test
1 parent d8171c5 commit 5aefc21

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

packages/cloudflare/src/cli/commands/populate-cache.spec.ts

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { BuildOptions } from "@opennextjs/aws/build/helper.js";
55
import mockFs from "mock-fs";
66
import { afterAll, beforeAll, describe, expect, test } from "vitest";
77

8-
import { getCacheAssets, withPopulateCacheOptions } from "./populate-cache.js";
8+
import { getCacheAssets } from "./populate-cache.js";
99

1010
describe("getCacheAssets", () => {
1111
beforeAll(() => {
@@ -68,23 +68,3 @@ describe("getCacheAssets", () => {
6868
`);
6969
});
7070
});
71-
72-
describe("withPopulateCacheOptions", () => {
73-
test("includes rcloneBatch option with correct defaults", () => {
74-
interface MockYargs {
75-
options: (name: string, config: Record<string, unknown>) => MockYargs;
76-
}
77-
78-
const mockYargs: MockYargs = {
79-
options: (name: string, config: Record<string, unknown>) => {
80-
expect(name).toBeDefined();
81-
expect(config).toBeDefined();
82-
return mockYargs;
83-
},
84-
};
85-
86-
const result = withPopulateCacheOptions(mockYargs as never);
87-
88-
expect(result).toBe(mockYargs);
89-
});
90-
});

0 commit comments

Comments
 (0)