unit test: picker (#20)

* pick unit test
This commit is contained in:
张敏
2017-04-26 17:06:02 +08:00
committed by GitHub
parent b4544ef1dc
commit e239b9937d
4 changed files with 24 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
import Switch from 'packages/switch';
import Vue from 'vue';
import ZanLoading from 'packages/loading';
import VanLoading from 'packages/loading';
import { mount } from 'avoriaz';
describe('Switch', () => {
@@ -38,7 +38,7 @@ describe('Switch', () => {
loading: true
}
});
const loading = wrapper.find(ZanLoading)[0];
const loading = wrapper.find(VanLoading)[0];
expect(wrapper.hasClass('van-switch')).to.be.true;
expect(loading.isVueComponent).to.be.true;