"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/lib/pack.js" between
npm-cli-7.16.0.tar.gz and npm-cli-7.17.0.tar.gz

About: npm is a JavaScript package manager (requires node v6 or higher).

pack.js  (npm-cli-7.16.0):pack.js  (npm-cli-7.17.0)
skipping to change at line 37 skipping to change at line 37
t.afterEach(() => OUTPUT.length = 0) t.afterEach(() => OUTPUT.length = 0)
t.test('should pack current directory with no arguments', (t) => { t.test('should pack current directory with no arguments', (t) => {
const Pack = t.mock('../../lib/pack.js', { const Pack = t.mock('../../lib/pack.js', {
libnpmpack, libnpmpack,
npmlog: { npmlog: {
notice: () => {}, notice: () => {},
showProgress: () => {}, showProgress: () => {},
clearProgress: () => {}, clearProgress: () => {},
}, },
fs: {
writeFile: (file, data, cb) => cb(),
},
}) })
const npm = mockNpm({ const npm = mockNpm({
config: { config: {
unicode: false, unicode: false,
json: false, json: false,
'dry-run': false, 'dry-run': false,
}, },
output, output,
}) })
const pack = new Pack(npm) const pack = new Pack(npm)
skipping to change at line 72 skipping to change at line 75
}, null, 2), }, null, 2),
}) })
const Pack = t.mock('../../lib/pack.js', { const Pack = t.mock('../../lib/pack.js', {
libnpmpack, libnpmpack,
npmlog: { npmlog: {
notice: () => {}, notice: () => {},
showProgress: () => {}, showProgress: () => {},
clearProgress: () => {}, clearProgress: () => {},
}, },
fs: {
writeFile: (file, data, cb) => cb(),
},
}) })
const npm = mockNpm({ const npm = mockNpm({
config: { config: {
unicode: true, unicode: true,
json: false, json: false,
'dry-run': true, 'dry-run': true,
}, },
output, output,
}) })
const pack = new Pack(npm) const pack = new Pack(npm)
skipping to change at line 107 skipping to change at line 113
}, null, 2), }, null, 2),
}) })
const Pack = t.mock('../../lib/pack.js', { const Pack = t.mock('../../lib/pack.js', {
libnpmpack, libnpmpack,
npmlog: { npmlog: {
notice: () => {}, notice: () => {},
showProgress: () => {}, showProgress: () => {},
clearProgress: () => {}, clearProgress: () => {},
}, },
fs: {
writeFile: (file, data, cb) => cb(),
},
}) })
const npm = mockNpm({ const npm = mockNpm({
config: { config: {
unicode: true, unicode: true,
json: false, json: false,
'dry-run': true, 'dry-run': true,
}, },
output, output,
}) })
const pack = new Pack(npm) const pack = new Pack(npm)
skipping to change at line 141 skipping to change at line 150
logTar: () => { logTar: () => {
t.ok(true, 'logTar is called') t.ok(true, 'logTar is called')
}, },
}, },
libnpmpack, libnpmpack,
npmlog: { npmlog: {
notice: () => {}, notice: () => {},
showProgress: () => {}, showProgress: () => {},
clearProgress: () => {}, clearProgress: () => {},
}, },
fs: {
writeFile: (file, data, cb) => cb(),
},
}) })
const npm = mockNpm({ const npm = mockNpm({
config: { config: {
unicode: false, unicode: false,
json: false, json: false,
'dry-run': false, 'dry-run': false,
}, },
output, output,
}) })
const pack = new Pack(npm) const pack = new Pack(npm)
skipping to change at line 212 skipping to change at line 224
], ],
entryCount: 4, entryCount: 4,
bundled: [], bundled: [],
}), }),
}, },
npmlog: { npmlog: {
notice: () => {}, notice: () => {},
showProgress: () => {}, showProgress: () => {},
clearProgress: () => {}, clearProgress: () => {},
}, },
fs: {
writeFile: (file, data, cb) => cb(),
},
}) })
const npm = mockNpm({ const npm = mockNpm({
config: { config: {
unicode: true, unicode: true,
json: true, json: true,
'dry-run': true, 'dry-run': true,
}, },
output, output,
}) })
const pack = new Pack(npm) const pack = new Pack(npm)
skipping to change at line 262 skipping to change at line 277
}, },
} }
const Pack = t.mock('../../lib/pack.js', { const Pack = t.mock('../../lib/pack.js', {
libnpmpack, libnpmpack,
pacote: mockPacote, pacote: mockPacote,
npmlog: { npmlog: {
notice: () => {}, notice: () => {},
showProgress: () => {}, showProgress: () => {},
clearProgress: () => {}, clearProgress: () => {},
}, },
fs: {
writeFile: (file, data, cb) => cb(),
},
}) })
const npm = mockNpm({ const npm = mockNpm({
config: { config: {
unicode: true, unicode: true,
json: false, json: false,
'dry-run': true, 'dry-run': true,
}, },
output, output,
}) })
const pack = new Pack(npm) const pack = new Pack(npm)
skipping to change at line 308 skipping to change at line 326
}, },
}) })
const Pack = t.mock('../../lib/pack.js', { const Pack = t.mock('../../lib/pack.js', {
libnpmpack, libnpmpack,
pacote: mockPacote, pacote: mockPacote,
npmlog: { npmlog: {
notice: () => {}, notice: () => {},
showProgress: () => {}, showProgress: () => {},
clearProgress: () => {}, clearProgress: () => {},
}, },
fs: {
writeFile: (file, data, cb) => cb(),
},
}) })
const npm = mockNpm({ const npm = mockNpm({
localPrefix: testDir, localPrefix: testDir,
config: { config: {
unicode: false, unicode: false,
json: false, json: false,
'dry-run': false, 'dry-run': false,
}, },
output, output,
}) })
 End of changes. 7 change blocks. 
0 lines changed or deleted 21 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)