mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
unit test
This commit is contained in:
@@ -1,36 +1,36 @@
|
||||
import Toast from 'packages/toast';
|
||||
import { mount } from 'avoriaz';
|
||||
// import Toast from 'packages/toast';
|
||||
// import { mount } from 'avoriaz';
|
||||
|
||||
describe('Toast', () => {
|
||||
// it('create simple toast', () => {
|
||||
// Toast('a message');
|
||||
// var toast = document.querySelector('.zan-toast');
|
||||
// describe('Toast', () => {
|
||||
// // it('create simple toast', () => {
|
||||
// // Toast('a message');
|
||||
// // var toast = document.querySelector('.zan-toast');
|
||||
|
||||
// expect(toast).not.to.be.underfined;
|
||||
// // expect(toast).not.to.be.underfined;
|
||||
|
||||
// setTimeout(() => {
|
||||
// expect(toast.hidden).to.be.true;
|
||||
// }, 301);
|
||||
// });
|
||||
// // setTimeout(() => {
|
||||
// // expect(toast.hidden).to.be.true;
|
||||
// // }, 301);
|
||||
// // });
|
||||
|
||||
// it('create loading toast', () => {
|
||||
// Toast.loading('');
|
||||
// var toast = document.querySelector('.zan-toast');
|
||||
// // it('create loading toast', () => {
|
||||
// // Toast.loading('');
|
||||
// // var toast = document.querySelector('.zan-toast');
|
||||
|
||||
// expect(toast).not.to.be.underfined;
|
||||
// // expect(toast).not.to.be.underfined;
|
||||
|
||||
// setTimeout(() => {
|
||||
// expect(toast.hidden).to.be.true;
|
||||
// }, 301);
|
||||
// });
|
||||
// it('create loading toast', () => {
|
||||
// Toast.success('');
|
||||
// var toast = document.querySelector('.zan-toast');
|
||||
// // setTimeout(() => {
|
||||
// // expect(toast.hidden).to.be.true;
|
||||
// // }, 301);
|
||||
// // });
|
||||
// // it('create loading toast', () => {
|
||||
// // Toast.success('');
|
||||
// // var toast = document.querySelector('.zan-toast');
|
||||
|
||||
// expect(toast).not.to.be.underfined;
|
||||
// // expect(toast).not.to.be.underfined;
|
||||
|
||||
// setTimeout(() => {
|
||||
// expect(toast.hidden).to.be.true;
|
||||
// }, 301);
|
||||
// });
|
||||
});
|
||||
// // setTimeout(() => {
|
||||
// // expect(toast.hidden).to.be.true;
|
||||
// // }, 301);
|
||||
// // });
|
||||
// });
|
||||
|
Reference in New Issue
Block a user