Skip to content

Commit 3ed9dcc

Browse files
committed
Add test
1 parent cb72ee8 commit 3ed9dcc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

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

323+
it('exposes a #navigator-title slot', () => {
324+
const wrapper = createWrapper({
325+
scopedSlots: {
326+
'navigator-title': '<div class="navigator-title">CustomNavigatorTitle</div>',
327+
},
328+
});
329+
expect(wrapper.find('.navigator-title').text()).toBe('CustomNavigatorTitle');
330+
});
331+
323332
it('exposes a #above-navigator-head slot', () => {
324333
const wrapper = createWrapper({
325334
scopedSlots: {

0 commit comments

Comments
 (0)