summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--colors/example.ts3
-rw-r--r--colors/main_test.ts1
2 files changed, 4 insertions, 0 deletions
diff --git a/colors/example.ts b/colors/example.ts
new file mode 100644
index 000000000..d60ecc31c
--- /dev/null
+++ b/colors/example.ts
@@ -0,0 +1,3 @@
+import { color } from "main.ts";
+
+console.log(color.bgBlue.red.bold("Hello world!"));
diff --git a/colors/main_test.ts b/colors/main_test.ts
index 596a592a6..7948ee96a 100644
--- a/colors/main_test.ts
+++ b/colors/main_test.ts
@@ -1,5 +1,6 @@
import { assertEqual, test } from "https://deno.land/x/testing/testing.ts";
import { color } from "./main";
+import "example";
test(function singleColor() {
assertEqual(color.red("Hello world"), "Hello world");