diff options
Diffstat (limited to 'test/fixtures/mock-npm.js')
-rw-r--r-- | test/fixtures/mock-npm.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/fixtures/mock-npm.js b/test/fixtures/mock-npm.js index 0318eadeb..8a744cd55 100644 --- a/test/fixtures/mock-npm.js +++ b/test/fixtures/mock-npm.js @@ -238,6 +238,15 @@ class MockNpm { } this._mockOutputs.push(msg) } + + // with the older fake mock npm there is no + // difference between output and outputBuffer + // since it just collects the output and never + // calls the exit handler, so we just mock the + // method the same as output. + outputBuffer (...msg) { + this.output(...msg) + } } const FakeMockNpm = (base = {}, t) => { |