Upgrade QUnit to latest version

This commit is contained in:
Robin Ward
2017-06-14 13:57:58 -04:00
parent 8ae445766f
commit cc525b1a8d
145 changed files with 7569 additions and 6763 deletions

View File

@ -4,14 +4,14 @@ import PreloadStore from 'preload-store';
acceptance("CustomHTML set");
test("has no custom HTML in the top", assert => {
QUnit.test("has no custom HTML in the top", assert => {
visit("/static/faq");
andThen(() => {
assert.ok(!exists('span.custom-html-test'), 'it has no markup');
});
});
test("renders set HTML", assert => {
QUnit.test("renders set HTML", assert => {
setCustomHTML('top', '<span class="custom-html-test">HTML</span>');
visit("/static/faq");
@ -20,11 +20,11 @@ test("renders set HTML", assert => {
});
});
test("renders preloaded HTML", assert => {
QUnit.test("renders preloaded HTML", assert => {
PreloadStore.store('customHTML', {top: "<span class='cookie'>monster</span>"});
visit("/static/faq");
andThen(() => {
assert.equal(find('span.cookie').text(), 'monster', 'it inserted the markup');
});
});
});