Skip to content

Commit b7cc1be

Browse files
committed
ProductMenuSection.test.tsx: Fix tests
1 parent ece8e8a commit b7cc1be

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/components/src/internal/components/navigation/ProductMenuSection.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,12 +331,12 @@ describe('ProductMenuSection', () => {
331331

332332
renderWithAppContext(
333333
<ProductMenuSection
334-
containerPath="/test"
334+
containerPath="/DefaultTestContainer"
335335
section={section}
336336
config={
337337
new MenuSectionConfig({
338338
emptyText: 'Testing empty',
339-
emptyAppURL: 'home',
339+
emptyAppURL: AppURL.create('home'),
340340
emptyURLText: 'Create it',
341341
})
342342
}
@@ -348,7 +348,7 @@ describe('ProductMenuSection', () => {
348348
expect(document.querySelectorAll('.empty-section-link').length).toBe(1);
349349
expect(document.querySelectorAll('.empty-section-link')[0].textContent).toBe('Create it');
350350
expect(document.querySelectorAll('.empty-section-link')[0].querySelector('a').getAttribute('href')).toBe(
351-
'home'
351+
'/home'
352352
);
353353
});
354354

0 commit comments

Comments
 (0)