mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 23:20:44 +00:00
test: simplify plugin inspect guard
This commit is contained in:
@@ -151,8 +151,7 @@ function expectInspectReport(
|
||||
pluginId: string,
|
||||
): NonNullable<ReturnType<typeof buildPluginInspectReport>> {
|
||||
const inspect = buildPluginInspectReport({ id: pluginId });
|
||||
expect(inspect).not.toBeNull();
|
||||
if (!inspect) {
|
||||
if (inspect === null) {
|
||||
throw new Error(`expected inspect report for ${pluginId}`);
|
||||
}
|
||||
return inspect;
|
||||
|
||||
Reference in New Issue
Block a user