Browse Source

Add test for FormGuideline component

pull/1542/head
Hironsan 3 years ago
parent
commit
188097a3f9
1 changed files with 23 additions and 0 deletions
  1. 23
      frontend/test/unit/components/tasks/toolbar/forms/formGuideline.spec.js

23
frontend/test/unit/components/tasks/toolbar/forms/formGuideline.spec.js

@ -0,0 +1,23 @@
/**
* @jest-environment jsdom
*/
import { mount } from '@vue/test-utils'
import FormGuideline from '@/components/tasks/toolbar/forms/FormGuideline'
const $t = () => {}
const factory = (values = {}) => {
return mount(FormGuideline, {
propsData: {
guidelineText: 'Hello'
},
mocks:{ $t }
})
}
describe('Foo', () => {
it('welcome メッセージを描画する', () => {
const wrapper = factory()
expect(wrapper.find('.tui-editor-contents').text()).toEqual('Hello')
})
})
Loading…
Cancel
Save