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:
Diffstat (limited to 'test/fixtures/mock-npm.js')
-rw-r--r--test/fixtures/mock-npm.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/fixtures/mock-npm.js b/test/fixtures/mock-npm.js
index abb45613c..a51ec3e5b 100644
--- a/test/fixtures/mock-npm.js
+++ b/test/fixtures/mock-npm.js
@@ -25,6 +25,7 @@ const RealMockNpm = (t, otherMocks = {}) => {
mock.joinedOutput = () => {
return mock.outputs.map(o => o.join(' ')).join('\n')
}
+ mock.filteredLogs = title => mock.logs.filter(([t]) => t === title).map(([, , msg]) => msg)
const Npm = t.mock('../../lib/npm.js', otherMocks)
class MockNpm extends Npm {
constructor () {