Skip to content

Commit

Permalink
test(lib): add test case for FieldBody
Browse files Browse the repository at this point in the history
- Adds a new test case for `FieldBody`, which instantiates a `FieldBody`
  without the default slot.

  This test won't pass until the issue mentioned in the following
  comment:
    - ntohq#18 (comment)

issue ntohq#1 (comment)
  • Loading branch information
kikuomax committed Sep 1, 2023
1 parent e3a0868 commit d806b9f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/field/FieldBody.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,9 @@ describe('BFieldBody', () => {
expect(wrapper.find('p.help').text()).toBe(message)
})
})

it('should be able to be instantiated without the default slot', () => {
const wrapper = shallowMount(BFieldBody)
expect(wrapper.find('.field-body').exists()).toBe(true)
})
})

0 comments on commit d806b9f

Please sign in to comment.