Skip to content

Commit

Permalink
test: remove useless dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
chouchouji committed Nov 23, 2024
1 parent 3bb88bd commit 84f7e95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Usage: nrm [options] [command]
ls List all the registries
current Show current registry name
-u --show-url Show the registry URL instead of the name
use [registry] Change registry to registry
use [registry] Change registry to registry
add <registry> <url> [home] Add one custom registry
login <registry> [value] Set authorize information for a registry with a base64 encoded string or username and password
-a --always-auth Set is always auth
Expand Down
5 changes: 2 additions & 3 deletions tests/cli.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
const coffee = require('coffee');
const open = require('open');
const chalk = require('chalk');
const { render } = require('@inquirer/testing');
const { onHome, onTest, onUse } = require('.././actions.js');
const { onHome, onTest } = require('.././actions.js');
const { spawn } = require('node:child_process');
const stripAnsi = require('strip-ansi');
const isWin = process.platform === 'win32';
Expand Down Expand Up @@ -69,7 +68,7 @@ it('nrm use without argument', async () => {
});

expect(message).toBe(`? Please select the registry you want to use (Use arrow keys)
npm
${isWin ? '>' : '❯'} npm
yarn
tencent
cnpm
Expand Down

0 comments on commit 84f7e95

Please sign in to comment.