@cnamts/vue-dot
Version:
Implementation of our Design System for the French Health Insurance
26 lines (18 loc) • 573 B
text/typescript
import Vue, { DirectiveOptions } from 'vue';
import { registerDirectives, Directives } from '../';
import { getDirectives } from '@/tests/integration/utils';
/** Create basic test component */
function createTestDirective() {
const directive: DirectiveOptions = {};
return directive;
}
const directives: Directives = {
TestA: createTestDirective(),
TestB: createTestDirective()
};
describe('registerDirectives', () => {
it('should register the directives', () => {
registerDirectives(Vue, directives);
expect(getDirectives(Vue)).toMatchSnapshot();
});
});