mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
unit test
This commit is contained in:
16
test/unit/specs/quantity.spec.js
Normal file
16
test/unit/specs/quantity.spec.js
Normal 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;
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user