From 84f7e957ab3517e0db1b744b3f31b66dd9ed6e8f Mon Sep 17 00:00:00 2001 From: chouchouji <1305974212@qq.com> Date: Sat, 23 Nov 2024 22:34:21 +0800 Subject: [PATCH] test: remove useless dependency --- README.md | 2 +- tests/cli.test.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c253688..7c212a0 100644 --- a/README.md +++ b/README.md @@ -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 [home] Add one custom registry login [value] Set authorize information for a registry with a base64 encoded string or username and password -a --always-auth Set is always auth diff --git a/tests/cli.test.js b/tests/cli.test.js index f65adfc..2b6d598 100644 --- a/tests/cli.test.js +++ b/tests/cli.test.js @@ -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'; @@ -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