diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-12-19 13:20:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-19 13:20:06 -0500 |
commit | ecde6a4c503584aa712f40e70c8e1aa78959e110 (patch) | |
tree | 95905177b5ad267f1ad31fe1248e2fc4a8c08233 | |
parent | 6624584dd476f0f261376e7c625a318049d2bd83 (diff) |
Add colors example (denoland/deno_std#31)
Original: https://github.com/denoland/deno_std/commit/3dfbfdbf293d11466ab60ccb88962627643f9df1
-rw-r--r-- | colors/example.ts | 3 | ||||
-rw-r--r-- | colors/main_test.ts | 1 |
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"), "[31mHello world[39m"); |