We used many global functions to handle tests when they should be imported like other libraries in our application. This also gets us closer to the way Ember CLI prefers our tests to be laid out.
13 lines
421 B
JavaScript
13 lines
421 B
JavaScript
import { test, module } from "qunit";
|
|
import { parseBBCodeTag } from "pretty-text/engines/discourse-markdown/bbcode-block";
|
|
|
|
module("lib:pretty-text:bbcode");
|
|
|
|
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");
|
|
});
|