base16-builder / base16-builder/base16-builder

Add tests to ensure that success messages are green and error messages are red

Open
#13 0 comments 1 reaction 0 assignees View on GitHub
help wanted
Dominant language
HTML
Stars
454
Forks
39
PR merge metrics
No merged PRs in 30d

Description

In an attempt to eliminate the possibility of a trivial regression, tests should be included to verify that
- Success messages are output to the console with a green colour; and,
- error messages are output to the console with a red colour!

I haven't included these tests as I'm not _yet_ sure how to go about testing this.

The module I use to colourize the output namely, [Chalk](https://github.com/chalk/chalk), does so by emitting [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) however, the terminal interprets these ANSI escape codes before I can evaluate them. Hm :confused:.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.