aboutsummaryrefslogtreecommitdiff
path: root/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'main.ts')
-rw-r--r--main.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/main.ts b/main.ts
index 00be856..5c59ea9 100644
--- a/main.ts
+++ b/main.ts
@@ -13,7 +13,7 @@ function prettyprintParseResult(input: ParseResult) {
out += " (";
out += token.reading.map(r => r.ruby ? r.ruby : r.text).reduce((a, b) => a + b);
out += ") ";
- out += token.tags.arr().map(a => `[${a}]`).join(" ");
+ out += token.tags.map(a => `[${a}]`).join(" ");
console.log(out);
}
@@ -36,7 +36,7 @@ async function apiTest(api: API) {
}
// test 1 (direct api)
-(async () => {
+await (async () => {
var api = new YomikunDirectAPIClient();
await api.prepare();
@@ -44,8 +44,10 @@ async function apiTest(api: API) {
await apiTest(api);
})();
+console.log("\n".repeat(2));
+
// test 2 (remote api)
-(async () => {
+await (async () => {
// default host = localhost:9400
var server = new YomikunRemoteAPIServer();
await server.prepare();