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:
parent
d940b5541f
commit
f38deb0f07
|
@ -591,7 +591,7 @@
|
||||||
"name": "setCurrentDirectiveDef"
|
"name": "setCurrentDirectiveDef"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "setCurrentViewQueryIndex"
|
"name": "setCurrentQueryIndex"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "setFirstTemplatePass"
|
"name": "setFirstTemplatePass"
|
||||||
|
|
|
@ -2791,13 +2791,11 @@ describe('query', () => {
|
||||||
type: ContentQueryDirective,
|
type: ContentQueryDirective,
|
||||||
selectors: [['', 'content-query', '']],
|
selectors: [['', 'content-query', '']],
|
||||||
factory: () => contentQueryDirective = new ContentQueryDirective(),
|
factory: () => contentQueryDirective = new ContentQueryDirective(),
|
||||||
contentQueries:
|
contentQueries: (dirIndex: number) => { contentQuery(dirIndex, TextDirective, true); },
|
||||||
(dirIndex) => { registerContentQuery(query(TextDirective, true), dirIndex); },
|
contentQueriesRefresh: (dirIndex: number) => {
|
||||||
contentQueriesRefresh: (dirIndex: number, queryStartIdx: number) => {
|
|
||||||
let tmp: any;
|
let tmp: any;
|
||||||
const instance = load<ContentQueryDirective>(dirIndex);
|
const instance = load<ContentQueryDirective>(dirIndex);
|
||||||
queryRefresh(tmp = loadQueryList<TextDirective>(queryStartIdx)) &&
|
queryRefresh(tmp = loadContentQuery<TextDirective>()) && (instance.texts = tmp);
|
||||||
(instance.texts = tmp);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue