simplify test config (#639)

This commit is contained in:
neverland
2018-02-12 16:16:57 +08:00
committed by GitHub
parent e1544fe919
commit e1123c4116
72 changed files with 23 additions and 3828 deletions

23
test/specs/tabbar.spec.js Normal file
View File

@@ -0,0 +1,23 @@
import TabbarExample from '../components/tabbar';
import { mount } from 'avoriaz';
describe('Progress', () => {
let wrapper;
afterEach(() => {
wrapper && wrapper.destroy();
});
it('Tabbar with four items', (done) => {
wrapper = mount(TabbarExample);
wrapper.vm.$nextTick(() => {
expect(wrapper.find('.van-tabbar-item').length).to.equal(4);
wrapper.find('.van-tabbar-item')[3].element.click();
expect(wrapper.vm.active).to.equal(3);
expect(wrapper.vm.changeRecord).to.equal(3);
done();
});
});
});