1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-29 10:39:10 -05:00
Original: 3dfbfdbf29
This commit is contained in:
Ryan Dahl 2018-12-19 13:20:06 -05:00 committed by GitHub
parent 6624584dd4
commit ecde6a4c50
2 changed files with 4 additions and 0 deletions

3
colors/example.ts Normal file
View file

@ -0,0 +1,3 @@
import { color } from "main.ts";
console.log(color.bgBlue.red.bold("Hello world!"));

View file

@ -1,5 +1,6 @@
import { assertEqual, test } from "https://deno.land/x/testing/testing.ts"; import { assertEqual, test } from "https://deno.land/x/testing/testing.ts";
import { color } from "./main"; import { color } from "./main";
import "example";
test(function singleColor() { test(function singleColor() {
assertEqual(color.red("Hello world"), "Hello world"); assertEqual(color.red("Hello world"), "Hello world");