summaryrefslogtreecommitdiff
path: root/deps/npm/test/tap/link.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/test/tap/link.js')
-rw-r--r--deps/npm/test/tap/link.js49
1 files changed, 25 insertions, 24 deletions
diff --git a/deps/npm/test/tap/link.js b/deps/npm/test/tap/link.js
index 6562e35fd3..ea47e8296a 100644
--- a/deps/npm/test/tap/link.js
+++ b/deps/npm/test/tap/link.js
@@ -20,6 +20,31 @@ var OPTS = {
}
}
+var readJSON = {
+ name: 'foo',
+ version: '1.0.0',
+ description: '',
+ main: 'index.js',
+ scripts: {
+ test: 'echo \"Error: no test specified\" && exit 1'
+ },
+ author: '',
+ license: 'ISC'
+}
+
+var installJSON = {
+ name: 'bar',
+ version: '1.0.0',
+ description: '',
+ main: 'index.js',
+ scripts: {
+ test: 'echo \"Error: no test specified\" && exit 1'
+ },
+ author: '',
+ license: 'ISC'
+}
+
+
test('setup', function (t) {
setup()
common.npm(['ls', '-g', '--depth=0'], OPTS, function (err, c, out) {
@@ -72,30 +97,6 @@ test('cleanup', function (t) {
})
})
-var readJSON = {
- name: 'foo',
- version: '1.0.0',
- description: '',
- main: 'index.js',
- scripts: {
- test: 'echo \"Error: no test specified\" && exit 1'
- },
- author: '',
- license: 'ISC'
-}
-
-var installJSON = {
- name: 'bar',
- version: '1.0.0',
- description: '',
- main: 'index.js',
- scripts: {
- test: 'echo \"Error: no test specified\" && exit 1'
- },
- author: '',
- license: 'ISC'
-}
-
function cleanup () {
rimraf.sync(linkRoot)
rimraf.sync(link)