mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-04 12:40:05 +02:00
update packages to latest version
This commit is contained in:
55
node_modules/npm/test/tap/outdated-include-devdependencies.js
generated
vendored
Normal file
55
node_modules/npm/test/tap/outdated-include-devdependencies.js
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
var fs = require('graceful-fs')
|
||||
var path = require('path')
|
||||
|
||||
var mkdirp = require('mkdirp')
|
||||
var mr = require('npm-registry-mock')
|
||||
var rimraf = require('rimraf')
|
||||
var test = require('tap').test
|
||||
|
||||
var npm = require('../../')
|
||||
var common = require('../common-tap.js')
|
||||
|
||||
// config
|
||||
var pkg = path.resolve(__dirname, 'outdated-include-devdependencies')
|
||||
var cache = path.resolve(pkg, 'cache')
|
||||
|
||||
var json = {
|
||||
author: 'Rocko Artischocko',
|
||||
name: 'ignore-shrinkwrap',
|
||||
version: '0.0.0',
|
||||
devDependencies: {
|
||||
underscore: '>=1.3.1'
|
||||
}
|
||||
}
|
||||
|
||||
test('setup', function (t) {
|
||||
cleanup()
|
||||
mkdirp.sync(cache)
|
||||
fs.writeFileSync(
|
||||
path.join(pkg, 'package.json'),
|
||||
JSON.stringify(json, null, 2)
|
||||
)
|
||||
t.end()
|
||||
})
|
||||
|
||||
test('includes devDependencies in outdated', function (t) {
|
||||
process.chdir(pkg)
|
||||
mr({ port: common.port }, function (er, s) {
|
||||
npm.load({ cache: cache, registry: common.registry }, function () {
|
||||
npm.outdated(function (er, d) {
|
||||
t.equal('1.5.1', d[0][3])
|
||||
s.close()
|
||||
t.end()
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
test('cleanup', function (t) {
|
||||
cleanup()
|
||||
t.end()
|
||||
})
|
||||
|
||||
function cleanup () {
|
||||
rimraf.sync(pkg)
|
||||
}
|
Reference in New Issue
Block a user