Skip to content

Commit

Permalink
testing: remove common require from snippet test running
Browse files Browse the repository at this point in the history
  • Loading branch information
callmehiphop committed Sep 23, 2016
1 parent a6410a2 commit bfba66a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var prop = require('propprop');
var vm = require('vm');

var rootFile = 'index.json';
var util = require('../packages/common').util;
var noop = function() {};

var DocsError = createErrorClass('DocsError', function(err, code) {
var lineCol = err.stack.match('assert-code\.vm:(.+)');
Expand All @@ -46,7 +46,7 @@ var DocsError = createErrorClass('DocsError', function(err, code) {

var FakeConsole = Object.keys(console)
.reduce(function(console, method) {
console[method] = util.noop;
console[method] = noop;
return console;
}, {});

Expand Down

0 comments on commit bfba66a

Please sign in to comment.