discourse/test/javascripts/lib/discourse-test.js.es6

7 lines
289 B
Plaintext
Raw Normal View History

2017-06-14 13:57:58 -04:00
QUnit.module("lib:discourse");
2017-06-14 13:57:58 -04:00
QUnit.test("getURL on subfolder install", assert => {
Discourse.BaseUri = "/forum";
2017-06-14 13:57:58 -04:00
assert.equal(Discourse.getURL("/"), "/forum/", "root url has subfolder");
assert.equal(Discourse.getURL("/u/neil"), "/forum/u/neil", "relative url has subfolder");
});