Skip to content

Commit fb3beea

Browse files
🚧 Tests
1 parent 96e79f4 commit fb3beea

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/vue-intl-numberformat.spec.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const Vue = require('vue');
2+
const VueIntlNumberformat = require('vue-intl-numberformat');
3+
4+
function getComponent(Component, propsData) {
5+
const Ctor = Vue.extend(Component);
6+
return new Ctor({ propsData }).$mount();
7+
}
8+
9+
describe('VueIntlNumberformat', () => {
10+
it('has correct DOM structure', () => {
11+
const vm = getComponent(VueIntlNumberformat);
12+
13+
expect(vm.$el.nodeName).toBe('SPAN');
14+
});
15+
});

0 commit comments

Comments
 (0)