Skip to content
Snippets Groups Projects

Fix disappearing embeds on comments

Closed Hannes Heine requested to merge pr1618head into pr1618base
4 files
+ 33
16
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -17,12 +17,9 @@ config.stubs['nuxt-link'] = '<span><slot /></span>'
config.stubs['client-only'] = '<span><slot /></span>'
describe('CommentList.vue', () => {
let mocks
let store
let wrapper
let propsData
let mocks, store, wrapper, propsData, stubs
describe('shallowMount', () => {
describe('mount', () => {
beforeEach(() => {
propsData = {
post: {
@@ -53,6 +50,9 @@ describe('CommentList.vue', () => {
},
},
}
stubs = {
EditorContent: "<div class='stub'></div>",
}
})
const Wrapper = () => {
@@ -61,6 +61,7 @@ describe('CommentList.vue', () => {
mocks,
localVue,
propsData,
stubs,
})
}
@@ -76,9 +77,5 @@ describe('CommentList.vue', () => {
it('displays a comments counter', () => {
expect(wrapper.find('span.ds-tag').text()).toEqual('1')
})
it('displays comments when there are comments to display', () => {
expect(wrapper.find('div.comments').text()).toEqual('this is a comment')
})
})
})
Loading