mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Upgrade QUnit to latest version
This commit is contained in:
@ -13,11 +13,11 @@ const defaultOpts = buildOptions({
|
||||
getURL: url => url
|
||||
});
|
||||
|
||||
function cooked(input, expected, text) {
|
||||
equal(new PrettyText(defaultOpts).cook(input), expected.replace(/\/>/g, ">"), text);
|
||||
};
|
||||
|
||||
test("details", () => {
|
||||
test("details", assert => {
|
||||
const cooked = (input, expected, text) => {
|
||||
assert.equal(new PrettyText(defaultOpts).cook(input), expected.replace(/\/>/g, ">"), text);
|
||||
};
|
||||
cooked(`<details><summary>Info</summary>coucou</details>`,
|
||||
`<details><summary>Info</summary>\n\n<p>coucou</p>\n\n</details>`,
|
||||
"manual HTML for details");
|
||||
|
Reference in New Issue
Block a user