From ecde6a4c503584aa712f40e70c8e1aa78959e110 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 19 Dec 2018 13:20:06 -0500 Subject: [PATCH] Add colors example (denoland/deno_std#31) Original: https://github.com/denoland/deno_std/commit/3dfbfdbf293d11466ab60ccb88962627643f9df1 --- colors/example.ts | 3 +++ colors/main_test.ts | 1 + 2 files changed, 4 insertions(+) create mode 100644 colors/example.ts 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");