discourse/test/javascripts/unit/lib/bbcode-test.js
Robin Ward 445d6ba45f REFACTOR: Move qunit tests to a different directory structure
This structure is closer to how ember-cli expects tests to be placed. It
is not their final position, just the first step towards it.
2020-09-30 10:36:49 -04:00

12 lines
395 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");
});