fix(ivy): update test after Content Queries inheritance fix (#28414)

This commit updates test that was added after Content Queries inheritance fix (that renames some instructions) was merged into master. The test used previous version of instructions, thus causing failures after merging Content Queries inheritance fix.

PR Close #28414
This commit is contained in:
Andrew Kushnir 2019-01-28 20:54:52 -08:00 committed by Jason Aden
parent d940b5541f
commit f38deb0f07
2 changed files with 4 additions and 6 deletions

View File

@ -591,7 +591,7 @@
"name": "setCurrentDirectiveDef"
},
{
"name": "setCurrentViewQueryIndex"
"name": "setCurrentQueryIndex"
},
{
"name": "setFirstTemplatePass"

View File

@ -2791,13 +2791,11 @@ describe('query', () => {
type: ContentQueryDirective,
selectors: [['', 'content-query', '']],
factory: () => contentQueryDirective = new ContentQueryDirective(),
contentQueries:
(dirIndex) => { registerContentQuery(query(TextDirective, true), dirIndex); },
contentQueriesRefresh: (dirIndex: number, queryStartIdx: number) => {
contentQueries: (dirIndex: number) => { contentQuery(dirIndex, TextDirective, true); },
contentQueriesRefresh: (dirIndex: number) => {
let tmp: any;
const instance = load<ContentQueryDirective>(dirIndex);
queryRefresh(tmp = loadQueryList<TextDirective>(queryStartIdx)) &&
(instance.texts = tmp);
queryRefresh(tmp = loadContentQuery<TextDirective>()) && (instance.texts = tmp);
}
});
}