diff options
author | Gar <gar+gh@danger.computer> | 2021-06-23 16:53:56 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-06-23 19:43:20 +0300 |
commit | 87f67d9efaf6f897cf0d74e738c2625a21044109 (patch) | |
tree | 80338da5577a270ef6c96bd2fd50b2c8e1a29f17 /test/lib/init.js | |
parent | d0f50b156725e5b414050d9e9a59d5fad8a39a3d (diff) |
chore(tests): expose real mock npm object
Consolidates existing "real npm" mocks, labels it real. We can now
migrate tests to this one at a time instead of trying to make one giant
PR that does it all at once.
PR-URL: https://github.com/npm/cli/pull/3458
Credit: @wraithgar
Close: #3458
Reviewed-by: @nlf
Diffstat (limited to 'test/lib/init.js')
-rw-r--r-- | test/lib/init.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/init.js b/test/lib/init.js index 44a2af5bc..9b32eabe2 100644 --- a/test/lib/init.js +++ b/test/lib/init.js @@ -1,7 +1,7 @@ +const t = require('tap') const fs = require('fs') const { resolve } = require('path') -const t = require('tap') -const mockNpm = require('../fixtures/mock-npm') +const { fake: mockNpm } = require('../fixtures/mock-npm') const npmLog = { disableProgress: () => null, |