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
This commit is contained in:
parent
d805526659
commit
9b85b533ff
|
@ -157,32 +157,6 @@ runInEachFileSystem(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('at the project level', () => {
|
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', () => {
|
it('should return configuration for a package found in a project level file', () => {
|
||||||
loadTestFiles([{
|
loadTestFiles([{
|
||||||
name: _Abs('/project-1/ngcc.config.js'),
|
name: _Abs('/project-1/ngcc.config.js'),
|
||||||
|
|
Loading…
Reference in New Issue