Skip to content

Commit

Permalink
[[FIX]] Load JSHint from package root
Browse files Browse the repository at this point in the history
Reduce repetition by relying on the value of the `main` attribute in the
project's `package.json` file.
  • Loading branch information
jugglinmike authored and lukeapage committed Jul 25, 2015
1 parent ba1caea commit 92acdd1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/helpers/testhelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

'use strict';

var JSHINT = require('../../src/jshint.js').JSHINT;
var JSHINT = require("../..").JSHINT;

if (exports.setup === undefined || exports.setup === null) {
exports.setup = {};
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/core.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var JSHINT = require('../../src/jshint.js').JSHINT;
var JSHINT = require("../..").JSHINT;
var fs = require('fs');
var TestRun = require("../helpers/testhelper").setup.testRun;

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/envs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

var JSHINT = require('../../src/jshint.js').JSHINT;
var JSHINT = require("../..").JSHINT;
var fs = require('fs');
var TestRun = require("../helpers/testhelper").setup.testRun;

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

"use strict";

var JSHINT = require('../../src/jshint.js').JSHINT;
var JSHINT = require("../..").JSHINT;
var fs = require('fs');
var TestRun = require('../helpers/testhelper').setup.testRun;
var fixture = require('../helpers/fixture').fixture;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

var JSHINT = require('../../src/jshint.js').JSHINT;
var JSHINT = require("../..").JSHINT;
var fs = require('fs');
var TestRun = require("../helpers/testhelper").setup.testRun;
var path = require("path");
Expand Down

0 comments on commit 92acdd1

Please sign in to comment.