From 6971bb578829dd574ae8f1f5ca80bdc592552373 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Tue, 20 Oct 2026 08:41:24 +0200 Subject: [PATCH] style(server): format manifest test --- .../src/server/plugins/manifest.test.ts | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/packages/server/src/server/plugins/manifest.test.ts b/packages/server/src/server/plugins/manifest.test.ts index 3cbd4ae19a..a327310cc4 100644 --- a/packages/server/src/server/plugins/manifest.test.ts +++ b/packages/server/src/server/plugins/manifest.test.ts @@ -130,19 +130,18 @@ describe("plugin manifest", () => { // Listing translations are read by the registry when it publishes, never by the daemon, so a // value the registry would refuse must not stop a plugin from installing. - it.each([ - { "zh-cn": { name: "示例" } }, - { "zh-CN": { desc: "示例" } }, - "zh-CN", - ])("ignores listing translations: %j", async (translations) => { - const directory = await mkdtemp(path.join(tmpdir(), "paseo-plugin-manifest-")); - directories.push(directory); - await writeFile( - path.join(directory, "paseo-plugin.json"), - JSON.stringify({ id: "described", translations }), - ); - await expect(readPluginManifest(directory)).resolves.toEqual({ id: "described" }); - }); + it.each([{ "zh-cn": { name: "示例" } }, { "zh-CN": { desc: "示例" } }, "zh-CN"])( + "ignores listing translations: %j", + async (translations) => { + const directory = await mkdtemp(path.join(tmpdir(), "paseo-plugin-manifest-")); + directories.push(directory); + await writeFile( + path.join(directory, "paseo-plugin.json"), + JSON.stringify({ id: "described", translations }), + ); + await expect(readPluginManifest(directory)).resolves.toEqual({ id: "described" }); + }, + ); it("accepts only non-empty argv arrays for build commands", async () => { const directory = await mkdtemp(path.join(tmpdir(), "paseo-plugin-manifest-"));