discourse/test/javascripts/lib/discourse-test.js.es6
2016-03-31 17:40:54 -04:00

7 lines
272 B
JavaScript

module("lib:discourse");
test("getURL on subfolder install", function() {
Discourse.BaseUri = "/forum";
equal(Discourse.getURL("/"), "/forum/", "root url has subfolder");
equal(Discourse.getURL("/users/neil"), "/forum/users/neil", "relative url has subfolder");
});