Skip to content

Commit

Permalink
test: minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
P0lip committed Mar 15, 2020
1 parent 0db7765 commit 6dba96a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rulesets/__tests__/evaluators.jest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ describe('Code evaluators', () => {
`module.exports = () => require('path').join('/', 'hello!')`,
path.join(__dirname, '__fixtures__/a.js'),
)(),
).toEqual('/hello!');
).toEqual(require('path').join('/', 'hello!'));

expect(
evaluateExport(
`module.exports = () => require('@stoplight/path').join('/', 'hello!')`,
path.join(__dirname, '__fixtures__/a.js'),
)(),
).toEqual('/hello!');
).toEqual(path.join('/', 'hello!'));
});

it('supports require.resolve', () => {
Expand Down

0 comments on commit 6dba96a

Please sign in to comment.