unit test

This commit is contained in:
cookfront
2017-04-13 15:34:29 +08:00
parent 5a63e79ca7
commit 7ae82872e1
7 changed files with 85 additions and 65 deletions

View File

@@ -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);
// // });
// });