blob: 7948ee96a774a54130413d81ddd2373e7e79c6a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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");
});
test(function doubleColor() {
assertEqual(color.red.bgBlue("Hello world"), "[44m[31mHello world[39m[49m");
});
|