Browse Source

fix: --onlycase param broke cartesian tests

KernelDeimos 4 tháng trước cách đây
mục cha
commit
d9822a4f09
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tools/api-tester/apitest.js

+ 1 - 1
tools/api-tester/apitest.js

@@ -35,7 +35,7 @@ try {
         unit,
     }, positionals: [id] } = parsed);
 
-    onlycase = Number.parseInt(onlycase);
+    onlycase = onlycase !== undefined ? Number.parseInt(onlycase) : undefined;
 } catch (e) {
     console.error(e);
     console.error(