aboutsummaryrefslogtreecommitdiff
path: root/test/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'test/scripts')
-rw-r--r--test/scripts/apidoc/signature.debug.ts17
1 files changed, 7 insertions, 10 deletions
diff --git a/test/scripts/apidoc/signature.debug.ts b/test/scripts/apidoc/signature.debug.ts
index 9e99e8c6..704b629c 100644
--- a/test/scripts/apidoc/signature.debug.ts
+++ b/test/scripts/apidoc/signature.debug.ts
@@ -8,13 +8,10 @@ import { loadExampleMethods } from './utils';
/* Run with `pnpm tsx test/scripts/apidoc/signature.debug.ts` */
-initMarkdownRenderer()
- .then(async () => {
- const methods = await loadExampleMethods();
- for (const [name, method] of Object.entries(methods)) {
- console.log('Analyzing:', name);
- const result = await analyzeSignature(method, '', method.name);
- console.log('Result:', result);
- }
- })
- .catch(console.error);
+await initMarkdownRenderer();
+const methods = await loadExampleMethods();
+for (const [name, method] of Object.entries(methods)) {
+ console.log('Analyzing:', name);
+ const result = await analyzeSignature(method, '', method.name);
+ console.log('Result:', result);
+}