How to use the @boost/terminal.style.white function in @boost/terminal

To help you get started, we’ve selected a few @boost/terminal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github milesj / boost / packages / reporter-nyan / src / NyanReporter.ts View on Github external
if (routine) {
      if (routine.hasFailed()) {
        eyes = 'x .x';
      } else if (routine.isSkipped() || routine.isPending()) {
        eyes = 'o .o';
      } else if (routine.hasPassed()) {
        eyes = '^ .^';
      }
    }

    if (this.failed) {
      eyes = 'x .x';
    }

    return `( ${style.white(eyes)})`;
  }