1
0
mirror of synced 2024-11-22 13:26:06 +03:00
vue-formulario/test/unit/Formulario.test.js

19 lines
502 B
JavaScript

import Formulario from '@/index.ts'
describe('Formulario', () => {
it('Installs on vue instance', () => {
const registry = []
function Vue () {}
Vue.component = function (name, instance) {
registry.push(name)
}
Formulario.install(Vue)
expect(Vue.prototype.$formulario).toBe(Formulario)
expect(registry).toEqual([
'FormularioForm',
'FormularioGrouping',
'FormularioInput',
])
})
})