From d82500bd7be63ef04bb20758e02fba891e463bef Mon Sep 17 00:00:00 2001 From: Shakker Date: Fri, 8 May 2026 16:22:04 +0100 Subject: [PATCH] test: simplify plugin inspect guard --- src/plugins/status.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/status.test.ts b/src/plugins/status.test.ts index 06f6f3dbfa9..348e1f973ce 100644 --- a/src/plugins/status.test.ts +++ b/src/plugins/status.test.ts @@ -151,8 +151,7 @@ function expectInspectReport( pluginId: string, ): NonNullable> { const inspect = buildPluginInspectReport({ id: pluginId }); - expect(inspect).not.toBeNull(); - if (!inspect) { + if (inspect === null) { throw new Error(`expected inspect report for ${pluginId}`); } return inspect;