Skip to content

Commit

Permalink
Test: Use file extension for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle committed Aug 28, 2024
1 parent f5a7160 commit 86c5b20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cli/require-qunit-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ QUnit.module('requireQUnit', function (hooks) {
};
const requireQUnit = proxyquire('../../src/cli/require-qunit.js', {
qunit: null,
'../../qunit/qunit': fakeQUnit
'../../qunit/qunit.js': fakeQUnit
});
assert.strictEqual(requireQUnit(resolveStub).version, 'from-fake');
});

QUnit.test('throw if none found', function (assert) {
const requireQUnit = proxyquire('../../src/cli/require-qunit.js', {
qunit: null,
'../../qunit/qunit': null
'../../qunit/qunit.js': null
});

assert.throws(requireQUnit, /Cannot find module/);
Expand Down

0 comments on commit 86c5b20

Please sign in to comment.