mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 11:13:22 +08:00
12 lines
393 B
JavaScript
12 lines
393 B
JavaScript
import { parseBBCodeTag } from "pretty-text/engines/discourse-markdown/bbcode-block";
|
|
|
|
QUnit.module("lib:pretty-text:bbcode");
|
|
|
|
QUnit.test("block with multiple quoted attributes", assert => {
|
|
const parsed = parseBBCodeTag('[test one="foo" two="bar bar"]', 0, 30);
|
|
|
|
assert.equal(parsed.tag, "test");
|
|
assert.equal(parsed.attrs.one, "foo");
|
|
assert.equal(parsed.attrs.two, "bar bar");
|
|
});
|