diff options
Diffstat (limited to 'colors')
| -rw-r--r-- | colors/test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/colors/test.ts b/colors/test.ts index 6f3f7e5a8..26e34c742 100644 --- a/colors/test.ts +++ b/colors/test.ts @@ -4,19 +4,19 @@ import { assertEquals } from "../testing/asserts.ts"; import { red, bgBlue, setEnabled, getEnabled } from "./mod.ts"; import "../examples/colors.ts"; -test(function singleColor() { +test(function singleColor(): void { assertEquals(red("Hello world"), "[31mHello world[39m"); }); -test(function doubleColor() { +test(function doubleColor(): void { assertEquals(bgBlue(red("Hello world")), "[44m[31mHello world[39m[49m"); }); -test(function replacesCloseCharacters() { +test(function replacesCloseCharacters(): void { assertEquals(red("Hel[39mlo"), "[31mHel[31mlo[39m"); }); -test(function enablingColors() { +test(function enablingColors(): void { assertEquals(getEnabled(), true); setEnabled(false); assertEquals(bgBlue(red("Hello world")), "Hello world"); |
