@bethinkpl/design-system 33.0.0 → 33.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -423,17 +423,30 @@ describe('MenuItem', () => {
423
423
 
424
424
  describe('Conditional rendering', () => {
425
425
  it('does not render when no content is provided', () => {
426
- const wrapper = shallowMount(MenuItem, {
427
- props: {
426
+ const wrapper = createComponent({
427
+ label: '',
428
+ additionalText: '',
429
+ index: null,
430
+ iconLeft: null,
431
+ });
432
+
433
+ expect(wrapper.find('.ds-menuItem').exists()).toBe(false);
434
+ });
435
+
436
+ it('does not render component but renders children slot if is provided', () => {
437
+ const wrapper = createComponent(
438
+ {
428
439
  label: '',
429
- additionalText: '',
430
- index: null,
431
- iconLeft: null,
432
- isExpandable: false,
433
440
  },
434
- });
441
+ {
442
+ slots: {
443
+ children: '<strong data-test-id="children-identifier">children</strong>',
444
+ },
445
+ },
446
+ );
435
447
 
436
448
  expect(wrapper.find('.ds-menuItem').exists()).toBe(false);
449
+ expect(wrapper.find('[data-test-id="children-identifier"]').exists()).toBe(true);
437
450
  });
438
451
 
439
452
  it('renders when label is provided', () => {
@@ -435,7 +435,6 @@ const shouldRenderComponent = computed(
435
435
  label ||
436
436
  additionalText ||
437
437
  slots.labelSlot ||
438
- (slots.children && (!isExpandable || isExpanded.value)) ||
439
438
  index !== null ||
440
439
  iconLeft ||
441
440
  shouldRenderRightContent.value,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bethinkpl/design-system",
3
- "version": "33.0.0",
3
+ "version": "33.0.1",
4
4
  "description": "Bethink universe design-system",
5
5
  "repository": {
6
6
  "type": "git",