From 77d9bcc30f0f4a0a8cb3892e1027bc4e9bbfc290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Serna?= Date: Wed, 13 Jul 2022 14:38:32 -0300 Subject: [PATCH] tests -> examples --- {tests => examples}/bun.js | 1 + tests/mod.ts => examples/deno.ts | 5 +++++ examples/deps.ts | 2 ++ tests/deps.ts | 1 - 4 files changed, 8 insertions(+), 1 deletion(-) rename {tests => examples}/bun.js (93%) rename tests/mod.ts => examples/deno.ts (91%) create mode 100644 examples/deps.ts delete mode 100644 tests/deps.ts diff --git a/tests/bun.js b/examples/bun.js similarity index 93% rename from tests/bun.js rename to examples/bun.js index ab4891b..29ee019 100644 --- a/tests/bun.js +++ b/examples/bun.js @@ -1,3 +1,4 @@ +// TODO: remove and include the library appropriately import { GatewayIntents, Session } from "./deps.ts"; const token = process.env.TOKEN; diff --git a/tests/mod.ts b/examples/deno.ts similarity index 91% rename from tests/mod.ts rename to examples/deno.ts index 8b8e845..6519d62 100644 --- a/tests/mod.ts +++ b/examples/deno.ts @@ -1,4 +1,9 @@ +/** + * Deno example +*/ + import "https://deno.land/std@0.146.0/dotenv/load.ts"; +// TODO: remove and include the library appropriately import { GatewayIntents, Session } from "./deps.ts"; const token = Deno.env.get("TOKEN") ?? Deno.args[0]; diff --git a/examples/deps.ts b/examples/deps.ts new file mode 100644 index 0000000..54ecd20 --- /dev/null +++ b/examples/deps.ts @@ -0,0 +1,2 @@ +// TODO: remove and include the library appropriately +export * from "../mod.ts"; diff --git a/tests/deps.ts b/tests/deps.ts deleted file mode 100644 index 4dda9d8..0000000 --- a/tests/deps.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "../mod.ts";