formatting in test

This commit is contained in:
Regis 2017-04-25 12:48:00 -06:00
parent b5e58c3e08
commit ab7e591224
1 changed files with 8 additions and 1 deletions

View File

@ -41,12 +41,19 @@ describe('Issue Title', () => {
setTimeout(() => {
expect(document.querySelector('title').innerText)
.toContain('this is a title');
expect(issueShowComponent.$el.querySelector('.title').innerHTML)
.toContain('<p>this is a title</p>');
expect(issueShowComponent.$el.querySelector('.wiki').innerHTML)
.toContain('<p>this is a description!</p>');
expect(issueShowComponent.$el.querySelector('.js-task-list-field').innerText)
const hiddenText = issueShowComponent.$el
.querySelector('.js-task-list-field').innerText;
expect(hiddenText)
.toContain('this is a description');
done();
}, 10);
// 10ms is just long enough for the update hook to fire