diff --git a/src/rulesets/__tests__/evaluators.jest.test.ts b/src/rulesets/__tests__/evaluators.jest.test.ts index 6600bf6720..a98296f472 100644 --- a/src/rulesets/__tests__/evaluators.jest.test.ts +++ b/src/rulesets/__tests__/evaluators.jest.test.ts @@ -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', () => {