vant/test/unit/specs/toast.spec.js
2017-04-19 17:44:57 +08:00

37 lines
968 B
JavaScript

// import Toast from 'packages/toast';
// import { mount } from 'avoriaz';
// describe('Toast', () => {
// // it('create simple toast', () => {
// // Toast('a message');
// // var toast = document.querySelector('.van-toast');
// // expect(toast).not.to.be.underfined;
// // setTimeout(() => {
// // expect(toast.hidden).to.be.true;
// // }, 301);
// // });
// // it('create loading toast', () => {
// // Toast.loading('');
// // var toast = document.querySelector('.van-toast');
// // expect(toast).not.to.be.underfined;
// // setTimeout(() => {
// // expect(toast.hidden).to.be.true;
// // }, 301);
// // });
// // it('create loading toast', () => {
// // Toast.success('');
// // var toast = document.querySelector('.van-toast');
// // expect(toast).not.to.be.underfined;
// // setTimeout(() => {
// // expect(toast.hidden).to.be.true;
// // }, 301);
// // });
// });