diff --git a/colors/example.ts b/colors/example.ts new file mode 100644 index 0000000000..d60ecc31c6 --- /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 596a592a66..7948ee96a7 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");