Skip to content

Commit 788a426

Browse files
committed
[rdar://116401230] test: add test for #above-navigator-head slot
1 parent 6670b77 commit 788a426

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,13 @@ describe('BaseNavigatorCard', () => {
9090
});
9191
expect(wrapper.find('.card-body').text()).toBe('CustomBody');
9292
});
93+
94+
it('exposes a #above-navigator-head slot', () => {
95+
const wrapper = createWrapper({
96+
scopedSlots: {
97+
'above-navigator-head': '<div class="above-navigator-head">CustomAboveNavigatorHeadComponent</div>',
98+
},
99+
});
100+
expect(wrapper.find('.above-navigator-head').text()).toBe('CustomAboveNavigatorHeadComponent');
101+
});
93102
});

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,15 @@ describe('NavigatorCard', () => {
315315
expect(wrapper.find('.post-head').text()).toBe('CustomPostHead');
316316
});
317317

318+
it('exposes a #above-navigator-head slot', () => {
319+
const wrapper = createWrapper({
320+
scopedSlots: {
321+
'above-navigator-head': '<div class="above-navigator-head">CustomAboveNavigatorHeadComponent</div>',
322+
},
323+
});
324+
expect(wrapper.find('.above-navigator-head').text()).toBe('CustomAboveNavigatorHeadComponent');
325+
});
326+
318327
it('exposes a #filter slot', () => {
319328
const wrapper = createWrapper({
320329
scopedSlots: {

0 commit comments

Comments
 (0)