Commit 6c34f5a2 authored by Phil Hughes's avatar Phil Hughes

Added a test with markdown

[ci skip]
parent 35b5ea0a
......@@ -19,7 +19,7 @@ describe('Description field component', () => {
propsData: {
markdownPreviewUrl: '/',
markdownDocs: '/',
store,
formState: store.formState,
},
}).$mount();
......@@ -31,4 +31,16 @@ describe('Description field component', () => {
vm.$el.querySelector('.md-area textarea').value,
).toBe('test');
});
it('renders markdown field with a markdown description', (done) => {
store.formState.description = '**test**';
Vue.nextTick(() => {
expect(
vm.$el.querySelector('.md-area textarea').value,
).toBe('**test**');
done();
});
});
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment