Skip to content

Commit 7ac02e8

Browse files
fix(TitleRow): update test condition
1 parent b353e5e commit 7ac02e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@lightningjs/ui-components/src/components/TitleRow/TitleRow.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ describe('TitleRow', () => {
9696
items
9797
},
9898
{
99-
spyOnMethods: ['_titleLoaded']
99+
spyOnMethods: ['_update']
100100
}
101101
);
102102
expect(titleRow._Items.y).toBe(titleRow.style.titleMarginBottom);
103103

104-
await titleRow.__titleLoadedSpyPromise;
104+
await titleRow.__updateSpyPromise;
105105

106106
expect(titleRow._Items.y).toBe(
107107
titleRow._Title.finalH + titleRow.style.titleMarginBottom

0 commit comments

Comments
 (0)