mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 13:33:46 +08:00
649dfd8d23
This reverts commit 60523d8e02
.
15 lines
454 B
JavaScript
15 lines
454 B
JavaScript
module("Discourse.HTML");
|
|
|
|
var html = Discourse.HTML;
|
|
|
|
test("customHTML", function() {
|
|
blank(html.getCustomHTML('evil'), "there is no custom HTML for a key by default");
|
|
|
|
html.setCustomHTML('evil', 'trout');
|
|
equal(html.getCustomHTML('evil'), 'trout', 'it retrieves the custom html');
|
|
|
|
PreloadStore.store('customHTML', {cookie: 'monster'});
|
|
equal(html.getCustomHTML('cookie'), 'monster', 'it returns HTML fragments from the PreloadStore');
|
|
|
|
});
|