mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 21:50:24 +08:00
12 lines
306 B
JavaScript
12 lines
306 B
JavaScript
QUnit.module("lib:discourse");
|
|
|
|
QUnit.test("getURL on subfolder install", assert => {
|
|
Discourse.BaseUri = "/forum";
|
|
assert.equal(Discourse.getURL("/"), "/forum/", "root url has subfolder");
|
|
assert.equal(
|
|
Discourse.getURL("/u/neil"),
|
|
"/forum/u/neil",
|
|
"relative url has subfolder"
|
|
);
|
|
});
|