refactor: fix broken linting rules due to revert
This commit is contained in:
parent
a3debf6a72
commit
6a13c107cf
@ -294,7 +294,8 @@ describe('aot summaries for jit', () => {
|
|||||||
};
|
};
|
||||||
const {outDir: lib3In, genFiles: lib2Gen} = compileApp(lib2In, {useSummaries: true});
|
const {outDir: lib3In, genFiles: lib2Gen} = compileApp(lib2In, {useSummaries: true});
|
||||||
|
|
||||||
const lib2ModuleNgSummary = lib2Gen.find(f => f.genFileUrl === '/lib2/module.ngsummary.ts')!;
|
const lib2ModuleNgSummary =
|
||||||
|
lib2Gen.find(f => f.genFileUrl === '/lib2/module.ngsummary.ts') !;
|
||||||
const lib2ReexportNgSummary =
|
const lib2ReexportNgSummary =
|
||||||
lib2Gen.find(f => f.genFileUrl === '/lib2/reexport.ngsummary.ts') !;
|
lib2Gen.find(f => f.genFileUrl === '/lib2/reexport.ngsummary.ts') !;
|
||||||
|
|
||||||
@ -325,7 +326,8 @@ describe('aot summaries for jit', () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const lib3Gen = compileApp(lib3In, {useSummaries: true}).genFiles;
|
const lib3Gen = compileApp(lib3In, {useSummaries: true}).genFiles;
|
||||||
const lib3ModuleNgSummary = lib3Gen.find(f => f.genFileUrl === '/lib3/module.ngsummary.ts')!;
|
const lib3ModuleNgSummary =
|
||||||
|
lib3Gen.find(f => f.genFileUrl === '/lib3/module.ngsummary.ts') !;
|
||||||
const lib3ReexportNgSummary =
|
const lib3ReexportNgSummary =
|
||||||
lib3Gen.find(f => f.genFileUrl === '/lib3/reexport.ngsummary.ts') !;
|
lib3Gen.find(f => f.genFileUrl === '/lib3/reexport.ngsummary.ts') !;
|
||||||
|
|
||||||
|
@ -412,8 +412,9 @@ function declareTests(config?: {useJit: boolean}) {
|
|||||||
const ngIfEl = fixture.debugElement.children[0];
|
const ngIfEl = fixture.debugElement.children[0];
|
||||||
const someViewport: SomeViewport =
|
const someViewport: SomeViewport =
|
||||||
ngIfEl.childNodes
|
ngIfEl.childNodes
|
||||||
.find(debugElement => debugElement.nativeNode.nodeType === Node.COMMENT_NODE)!
|
.find(
|
||||||
.injector.get(SomeViewport);
|
debugElement => debugElement.nativeNode.nodeType ===
|
||||||
|
Node.COMMENT_NODE) !.injector.get(SomeViewport);
|
||||||
expect(someViewport.container.length).toBe(2);
|
expect(someViewport.container.length).toBe(2);
|
||||||
expect(ngIfEl.children.length).toBe(2);
|
expect(ngIfEl.children.length).toBe(2);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user