diff options
author | Gar <gar+gh@danger.computer> | 2022-04-11 02:26:55 +0300 |
---|---|---|
committer | Nathan Fritz <fritzy@github.com> | 2022-04-14 01:01:40 +0300 |
commit | c22fb1e756d43b54fefd826f2c3f459d4f1204b5 (patch) | |
tree | 8c18d5b9b0af4928452a6bcff11f124188ec32af /test | |
parent | 605ccef6916c170f6d0c53775614f8a02682262a (diff) |
deps: remove ansicolors
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/commands/help-search.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/commands/help-search.js b/test/lib/commands/help-search.js index 8d13009a2..7fbeb195d 100644 --- a/test/lib/commands/help-search.js +++ b/test/lib/commands/help-search.js @@ -1,7 +1,7 @@ const t = require('tap') const { join } = require('path') const { fake: mockNpm } = require('../../fixtures/mock-npm') -const ansicolors = require('ansicolors') +const chalk = require('chalk') const OUTPUT = [] const output = msg => { @@ -106,7 +106,7 @@ t.test('npm help-search long output with color', async t => { await helpSearch.exec(['help-search']) - const highlightedText = ansicolors.bgBlack(ansicolors.red('help-search')) + const highlightedText = chalk.bgBlack.red('help-search') t.equal( OUTPUT.some(line => line.includes(highlightedText)), true, |