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": "setCurrentViewQueryIndex"
|
||||
"name": "setCurrentQueryIndex"
|
||||
},
|
||||
{
|
||||
"name": "setFirstTemplatePass"
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue