Skip to content

Commit

Permalink
fix: add button-group test
Browse files Browse the repository at this point in the history
  • Loading branch information
niujunjier committed Nov 27, 2020
1 parent 3d98ed8 commit 8335a26
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/button-group/__tests__/ButtonGroup.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import ButtonGroup from '../ButtonGroup.vue'
import { mount } from '@vue/test-utils'

describe('ButtonGroup.vue', () => {
it('should show content', () => {
const content = 'foo'

const wrapper = mount(ButtonGroup, {
slots: {
default: content
}
})

expect(wrapper.text()).toContain(content)
})
})

0 comments on commit 8335a26

Please sign in to comment.