mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-08 02:58:54 +08:00
format
This commit is contained in:
@@ -19,7 +19,7 @@ describe('CheckBox', () => {
|
||||
})
|
||||
expect(wrapperChecked.find('img.checked').isVisible()).to.equal(true)
|
||||
wrapperChecked.unmount()
|
||||
|
||||
|
||||
const wrapperUnchecked = shallowMount(CheckBox, {
|
||||
props: { init: false },
|
||||
attachTo: document.body
|
||||
@@ -50,9 +50,13 @@ describe('CheckBox', () => {
|
||||
props: { disabled: true }
|
||||
})
|
||||
expect(wrapper.find('.checkbox-container').classes()).to.include('disabled')
|
||||
expect(wrapper.find('.checkbox-container').classes()).to.not.include('checked')
|
||||
expect(wrapper.find('.checkbox-container').classes()).to.not.include(
|
||||
'checked'
|
||||
)
|
||||
await wrapper.trigger('click')
|
||||
expect(wrapper.emitted().click).to.equal(undefined)
|
||||
expect(wrapper.find('.checkbox-container').classes()).to.not.include('checked')
|
||||
expect(wrapper.find('.checkbox-container').classes()).to.not.include(
|
||||
'checked'
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user