mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-29 18:46:23 -05:00
649dfd8d23
This reverts commit 60523d8e02
.
14 lines
454 B
JavaScript
14 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');
|
|
|
|
});
|