Skip to content

Commit a8c32e4

Browse files
committed
style(utils): wrap long mock setup in test
Reformat the mocked compressor setup in utils tests to match the repository's formatter style without changing behavior.
1 parent 023e7f4 commit a8c32e4

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

packages/utils/__tests__/utils.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,10 +1672,12 @@ describe("Package: utils", () => {
16721672
writeFile({ file: secondInput, content: "second" });
16731673

16741674
const webpContent = Buffer.from("SECOND_INPUT_WEBP");
1675-
const compressor: Settings["compressor"] = vi.fn().mockResolvedValue({
1676-
code: "",
1677-
outputs: [{ format: "webp", content: webpContent }],
1678-
});
1675+
const compressor: Settings["compressor"] = vi
1676+
.fn()
1677+
.mockResolvedValue({
1678+
code: "",
1679+
outputs: [{ format: "webp", content: webpContent }],
1680+
});
16791681
const settings: Settings = {
16801682
compressor,
16811683
input: [firstInput, secondInput],

0 commit comments

Comments
 (0)