diff options
Diffstat (limited to 'test/fixtures/mock-npm.js')
-rw-r--r-- | test/fixtures/mock-npm.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/fixtures/mock-npm.js b/test/fixtures/mock-npm.js index c9701ebc2..a79812fb7 100644 --- a/test/fixtures/mock-npm.js +++ b/test/fixtures/mock-npm.js @@ -224,6 +224,10 @@ class MockNpm { } } + get global () { + return this.config.get('global') || this.config.get('location') === 'global' + } + output (...msg) { if (this.base.output) { return this.base.output(msg) |