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

@@ -0,0 +1,16 @@
import Quantity from 'packages/quantity';
import { mount } from 'avoriaz';
describe('Quantity', () => {
let wrapper;
afterEach(() => {
wrapper && wrapper.destroy();
});
it('create a quantity', () => {
wrapper = mount(Quantity);
expect(wrapper.hasClass('zan-quantity')).to.be.true;
});
});