mirror of
https://github.com/denoland/deno.git
synced 2024-11-23 15:16:54 -05:00
6f5dbfe102
Original: 92bbca8166
11 lines
331 B
TypeScript
11 lines
331 B
TypeScript
import { assertEqual, test } from "../testing/mod.ts";
|
||
import { color } from "./mod.ts";
|
||
import "./example.ts";
|
||
|
||
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");
|
||
});
|