24 lines
491 B
TypeScript
24 lines
491 B
TypeScript
import { createClient } from "../src/index.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();
|
|
});
|
|
});
|