UNPKG

datocms-plugin-better-links

Version:

A plugin that allows you see multiple fields when selecting a Links field type.

20 lines (15 loc) 496 B
import { shallowMount, config } from '@vue/test-utils' import graphqlMock from '~/mocks/graphql' import pluginMock from '~/mocks/plugin' import BetterLinks from './' config.mocks.$graphql = graphqlMock() describe('BetterLinks', () => { test('Rendering successfully', () => { const wrapper = shallowMount(BetterLinks, { propsData: { plugin: pluginMock() }, }) const html = wrapper.html() expect(html).toMatch('BetterLinks') expect(html).toMatch(/Selecty/i) }) })