1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
denoland-deno/colors/main_test.ts
2018-12-19 13:20:06 -05:00

11 lines
345 B
TypeScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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");
});
test(function doubleColor() {
assertEqual(color.red.bgBlue("Hello world"), "Hello world");
});