Skip to content

Commit 6fc174e

Browse files
authored
update snapshot for navigatorDataProvider test (#890) rdar://134589698
update snapshot for `navigatorDataProvider` test (#890) rdar://134589698
1 parent 1162202 commit 6fc174e

File tree

2 files changed

+409
-10
lines changed

2 files changed

+409
-10
lines changed

tests/unit/components/Navigator/NavigatorDataProvider.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ describe('NavigatorDataProvider', () => {
342342
expect(props.flatChildren).toMatchSnapshot();
343343
});
344344

345-
it('removes the `beta` flag from children, if the parent is a `beta`', () => {
345+
it('removes the `beta` flag from children, if the parent is a `beta`', async () => {
346346
const technologyClone = JSON.parse(JSON.stringify(extendedTechnologies));
347347
technologyClone.beta = true;
348348
technologyClone.children[1].beta = true;
@@ -355,10 +355,11 @@ describe('NavigatorDataProvider', () => {
355355
},
356356
});
357357
createWrapper();
358+
await flushPromises();
358359
expect(props).toMatchSnapshot();
359360
});
360361

361-
it('removes the `beta` flag from children, if the parent is a `beta`', () => {
362+
it('removes the `beta` flag from children, if the parent is a `beta`', async () => {
362363
const technologyClone = JSON.parse(JSON.stringify(extendedTechnologies));
363364
technologyClone.children[1].beta = true;
364365
technologyClone.children[1].children[1].beta = true;
@@ -374,6 +375,7 @@ describe('NavigatorDataProvider', () => {
374375
},
375376
});
376377
createWrapper();
378+
await flushPromises();
377379
expect(props).toMatchSnapshot();
378380
});
379381

0 commit comments

Comments
 (0)