diff --git a/test/integration/full/patch/patch.mjs b/test/integration/full/patch/patch.mjs index 98c3c3a116..9f6271aef4 100644 --- a/test/integration/full/patch/patch.mjs +++ b/test/integration/full/patch/patch.mjs @@ -15,7 +15,7 @@ function mockWindowCSS() { describe('patch test', function () { it('when not mocked, imports and works as expected', async function () { try { - const { default: Color } = await import('/unpatched/color.js'); + const { default: Color } = await import('/unpatched-color.js'); let color = new Color('slategray'); assert.ok(color); } catch (error) { @@ -39,7 +39,7 @@ describe('patch test', function () { it('not patched: `CSS.supports` fails to load when `window.CSS === null`', async function () { try { - await import('/unpatched/color.js'); + await import('/unpatched-color.js'); } catch ({ name, message }) { assert.equal(name, 'TypeError'); assert.equal( diff --git a/test/karma.conf.js b/test/karma.conf.js index 9aebcdaa76..be3e300d61 100644 --- a/test/karma.conf.js +++ b/test/karma.conf.js @@ -110,7 +110,7 @@ module.exports = function (config) { ].concat(testPaths), proxies: { '/color.js': '/base/node_modules/colorjs.io/dist/color.js', - '/unpatched': '/base/patches/unpatched', + '/unpatched-color.js': '/base/patches/unpatched/color.js', '/test': '/base/test', '/mock': '/base/test/mock', '/integration': '/base/test/integration',