mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix(node/util): export styleText
from node:util
(#26194)
Fixes #26184. It was added but not publicly exported.
This commit is contained in:
parent
7a990d9d42
commit
4f89225f76
2 changed files with 8 additions and 0 deletions
|
@ -348,3 +348,8 @@ Deno.test("[util] aborted()", async () => {
|
|||
await promise;
|
||||
assertEquals(done, true);
|
||||
});
|
||||
|
||||
Deno.test("[util] styleText()", () => {
|
||||
const redText = util.styleText("red", "error");
|
||||
assertEquals(redText, "\x1B[31merror\x1B[39m");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue