mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
unit tes
This commit is contained in:
parent
5c389968f7
commit
85fe17deaf
@ -106,10 +106,14 @@ describe('ActionSheet', () => {
|
||||
});
|
||||
|
||||
expect(wrapper.data().currentValue).to.be.false;
|
||||
const eventStub = sinon.stub(wrapper.vm, '$emit');
|
||||
|
||||
wrapper.vm.value = true;
|
||||
wrapper.update();
|
||||
Vue.nextTick(() => {
|
||||
expect(wrapper.data().currentValue).to.be.true;
|
||||
expect(eventStub.calledOnce).to.be.true;
|
||||
expect(eventStub.calledWith('input'));
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
@ -2,13 +2,6 @@ import Badge from 'packages/badge';
|
||||
import BadgeGroup from 'packages/badge-group';
|
||||
import { mount } from 'avoriaz';
|
||||
|
||||
describe('Badge', () => {
|
||||
let wrapper;
|
||||
afterEach(() => {
|
||||
wrapper && wrapper.destroy();
|
||||
});
|
||||
});
|
||||
|
||||
describe('BadgeGroup', () => {
|
||||
let wrapper;
|
||||
afterEach(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user