From 9b85b533fffe3f89259cc544cd046b95f93f4bae Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Tue, 28 Apr 2020 14:35:28 +0100 Subject: [PATCH] test(ngcc): remove duplicate test (#36838) This test is basically duplicated (and slightly enhanced) in the following test. So it is superfluous. (I suspect it was the result of a broken rebase.) PR Close #36838 --- .../ngcc/test/packages/configuration_spec.ts | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/packages/compiler-cli/ngcc/test/packages/configuration_spec.ts b/packages/compiler-cli/ngcc/test/packages/configuration_spec.ts index edf2a718cc..3be81f0fd8 100644 --- a/packages/compiler-cli/ngcc/test/packages/configuration_spec.ts +++ b/packages/compiler-cli/ngcc/test/packages/configuration_spec.ts @@ -157,32 +157,6 @@ runInEachFileSystem(() => { }); describe('at the project level', () => { - it('should return configuration for a package found in a project level file', () => { - loadTestFiles([{ - name: _Abs('/project-1/ngcc.config.js'), - contents: ` - module.exports = { - packages: { - 'package-1': { - entryPoints: { - './entry-point-1': {} - }, - }, - }, - };` - }]); - const readFileSpy = spyOn(fs, 'readFile').and.callThrough(); - const configuration = new NgccConfiguration(fs, _Abs('/project-1')); - expect(readFileSpy).toHaveBeenCalledWith(_Abs('/project-1/ngcc.config.js')); - - const config = - configuration.getConfig(_Abs('/project-1/node_modules/package-1'), '1.0.0'); - expect(config).toEqual({ - versionRange: '*', - entryPoints: {[_Abs('/project-1/node_modules/package-1/entry-point-1')]: {}} - }); - }); - it('should return configuration for a package found in a project level file', () => { loadTestFiles([{ name: _Abs('/project-1/ngcc.config.js'),