2018-06-15 11:03:24 -04:00
|
|
|
import { parseBBCodeTag } from "pretty-text/engines/discourse-markdown/bbcode-block";
|
2018-05-23 05:55:02 -04:00
|
|
|
|
|
|
|
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");
|
|
|
|
});
|