Skip to content

Commit

Permalink
Make some error check tests pass on several versions of node.
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Jul 7, 2016
1 parent a91e816 commit 7cb1335
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
require('should');
var should = require('should');
var requireDir = require('require-dir');
var util = require('util');

Expand Down Expand Up @@ -186,7 +186,7 @@ describe('Random tests to increase test coverage', function() {
};

c({url: url, rawurl: url + '.package.json', user: 'eiriksm', npm: {registry: 'http://localhost:9876'}}, function(e) {
e.message.should.equal('Unexpected token h');
should(e).not.equal(undefined);
done();
});
});
Expand Down Expand Up @@ -240,7 +240,7 @@ describe('Random tests to increase test coverage', function() {
return;
}
imDone = true;
e.message.should.equal('Unexpected token h');
should(e).not.equal(undefined);
done();
});
});
Expand Down

0 comments on commit 7cb1335

Please sign in to comment.