mirror of
https://github.com/denoland/deno.git
synced 2024-12-29 10:39:10 -05:00
parent
6624584dd4
commit
ecde6a4c50
2 changed files with 4 additions and 0 deletions
3
colors/example.ts
Normal file
3
colors/example.ts
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
import { color } from "main.ts";
|
||||||
|
|
||||||
|
console.log(color.bgBlue.red.bold("Hello world!"));
|
|
@ -1,5 +1,6 @@
|
||||||
import { assertEqual, test } from "https://deno.land/x/testing/testing.ts";
|
import { assertEqual, test } from "https://deno.land/x/testing/testing.ts";
|
||||||
import { color } from "./main";
|
import { color } from "./main";
|
||||||
|
import "example";
|
||||||
|
|
||||||
test(function singleColor() {
|
test(function singleColor() {
|
||||||
assertEqual(color.red("Hello world"), "[31mHello world[39m");
|
assertEqual(color.red("Hello world"), "[31mHello world[39m");
|
||||||
|
|
Loading…
Reference in a new issue