mirror of
https://github.com/discourse/discourse.git
synced 2025-06-18 02:32:32 +08:00
Upgrade QUnit to latest version
This commit is contained in:
@ -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');
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user