Skip to content

Commit

Permalink
[Refactor] remove use of legacy exports
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 24, 2021
1 parent 077a108 commit c332d62
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.js
Expand Up @@ -13,7 +13,7 @@ var canExit = typeof process !== 'undefined' && process
&& typeof process.exit === 'function'
;

exports = module.exports = (function () {
module.exports = (function () {
var wait = false;
var harness;
var lazyLoad = function () {
Expand Down Expand Up @@ -115,10 +115,10 @@ function createExitHarness(conf, wait) {
};
}

exports.createHarness = createHarness;
exports.Test = Test;
exports.test = exports; // tap compat
exports.test.skip = Test.skip;
module.exports.createHarness = createHarness;
module.exports.Test = Test;
module.exports.test = module.exports; // tap compat
module.exports.test.skip = Test.skip;

function createHarness(conf_) {
if (!conf_) conf_ = {};
Expand Down

0 comments on commit c332d62

Please sign in to comment.