style(tests): require deps in every file

This commit is contained in:
Stephan Bönnemann
2015-06-11 17:07:54 -07:00
parent bd715dfdf4
commit 649af78c56
10 changed files with 41 additions and 22 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
'use strict'
var test = require('tape')
var nock = require('nock')
var npmInfo = require('../../dist/lib/npm-info.js')
@@ -19,7 +20,7 @@ var defaultModule = {
process.env.npm_config_registry = registry
module.exports = function (test) {
module.exports = function () {
test('npm-info', function (t) {
var regMock = nock(registry, {
reqheaders: {