Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/lib/commands/init.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/commands/init.js b/test/lib/commands/init.js
index e7b273934..2dcca5b7f 100644
--- a/test/lib/commands/init.js
+++ b/test/lib/commands/init.js
@@ -371,7 +371,7 @@ t.test('workspaces', t => {
})
const init = new Init(npm)
await init.execWorkspaces([], ['a'])
- const output = npm._mockOutputs.map(arr => arr.map(i => i.replace(/[0-9]*ms$/, '100ms')))
+ const output = npm._mockOutputs.map(arr => arr.map(i => i.replace(/[0-9]*m?s$/, '100ms')))
t.matchSnapshot(output, 'should print helper info')
const lockFilePath = resolve(npm.localPrefix, 'package-lock.json')
const lockFile = fs.readFileSync(lockFilePath, { encoding: 'utf8' })