initial commit
This commit is contained in:
25
test/blah.test.ts
Normal file
25
test/blah.test.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { createClient } from "../src/core/client.js";
|
||||
|
||||
describe("blah", () => {
|
||||
test("works", async () => {
|
||||
const client = createClient({
|
||||
name: "test",
|
||||
token: "6t4GCQywaLZlZsh1",
|
||||
zakoEndpoint: "http://127.0.0.1:8081",
|
||||
});
|
||||
|
||||
client.events.on("ready", () => {
|
||||
console.log("ready");
|
||||
});
|
||||
|
||||
client.events.on("connectionError", (e) => {
|
||||
console.error(e);
|
||||
});
|
||||
|
||||
client.events.on("error", (e) => console.error(e));
|
||||
|
||||
client.connect();
|
||||
|
||||
await new Promise((r) => setTimeout(r, 100000));
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user