diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-04-24 13:41:23 +0200 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-24 07:41:22 -0400 |
| commit | dcd01dd02530df0e799eb4227087680ffeb80d74 (patch) | |
| tree | 8cc1dec75dd17c326fea6d7fe471b7e7a31032f7 /colors | |
| parent | e1f7a60bb326f8299f339635c0738d28431afa0a (diff) | |
Eslint fixes (denoland/deno_std#356)
Make warnings fail
Original: https://github.com/denoland/deno_std/commit/4543b563a9a01c8c168aafcbfd9d4634effba7fc
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"); |
