add it block

This commit is contained in:
Devin Howard 2017-12-04 21:58:10 -08:00
parent fa3f36f2e9
commit e3243d1430

View file

@ -71,8 +71,10 @@ describe('TopicCard/Desc', function() {
describe('desc is not present', function() { describe('desc is not present', function() {
const textArea = render({ authorizedToEdit: true, desc: null }) const textArea = render({ authorizedToEdit: true, desc: null })
.find('.riek_desc') .find('.riek_desc')
expect(textArea.prop('defaultProps').dangerouslySetInnerHTML.__html) it('renders placeholder message', function() {
.to.equal('<p class="emptyDesc">Edit the description... (supports markdown)</p>') expect(textArea.prop('defaultProps').dangerouslySetInnerHTML.__html)
.to.equal('<p class="emptyDesc">Edit the description... (supports markdown)</p>')
})
}) })
}) })