From f8b7bde0339a3066fdddb2d38133a784642d2ff3 Mon Sep 17 00:00:00 2001 From: smouillour Date: Wed, 11 Oct 2023 09:51:13 +0200 Subject: [PATCH] fix test --- fork/dynamic-cdn-webpack-plugin/src/find.test.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/fork/dynamic-cdn-webpack-plugin/src/find.test.js b/fork/dynamic-cdn-webpack-plugin/src/find.test.js index 0d72fb96ba..c2c016f6b9 100644 --- a/fork/dynamic-cdn-webpack-plugin/src/find.test.js +++ b/fork/dynamic-cdn-webpack-plugin/src/find.test.js @@ -17,12 +17,9 @@ describe('findPackages', () => { '/node_modules/react/index.js': 'console.log("react");', '/node_modules/react/package.json': '{"name": "react", "version": "16.14.0"}', '/node_modules/@types/classnames/index.js': 'console.log("@types/classnames");', - '/node_modules/@talend/react-components/index.js': - 'console.log("@talend/react-components");', - '/node_modules/@talend/react-components/node_modules/react/index.js': - 'console.log("react");', - '/node_modules/@talend/react-containers/index.js': - 'console.log("@talend/react-containers");', + '/node_modules/@talend/react-components/index.js': 'console.log("@talend/react-components");', + '/node_modules/@talend/react-components/node_modules/react/index.js': 'console.log("react");', + '/node_modules/@talend/react-containers/index.js': 'console.log("@talend/react-containers");', }; beforeEach(() => { @@ -35,9 +32,8 @@ describe('findPackages', () => { const result = findPackages(undefined, 'react'); // then - expect(result.length).toBe(2); + expect(result.length).toBe(1); expect(result[0]).toBe('/node_modules/react'); - expect(result[1]).toBe('/node_modules/@talend/react-components/node_modules/react'); }); test('should find non scoped package', () => {