mirror of
https://github.com/denoland/deno.git
synced 2024-11-27 16:10:57 -05:00
a3d164df91
Original: 54787f172c
10 lines
327 B
TypeScript
10 lines
327 B
TypeScript
import { assertEqual, test } from "https://deno.land/x/testing/testing.ts";
|
||
import { color } from "./main";
|
||
|
||
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");
|
||
});
|