1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-19 04:16:00 -05:00
denoland-deno/colors/main_test.ts

12 lines
349 B
TypeScript
Raw Normal View History

2018-12-19 15:30:44 +11:00
import { assertEqual, test } from "https://deno.land/x/testing/testing.ts";
2018-12-23 18:49:46 -05:00
import { color } from "main.ts";
import "example.ts";
2018-12-19 15:30:44 +11:00
test(function singleColor() {
assertEqual(color.red("Hello world"), "Hello world");
});
test(function doubleColor() {
assertEqual(color.red.bgBlue("Hello world"), "Hello world");
});