Minor cleanup of /users/ rename

This commit is contained in:
Robin Ward
2017-03-29 12:24:46 -04:00
parent 14410b71fb
commit 7b6242bfbb
2 changed files with 8 additions and 1 deletions

View File

@ -31,3 +31,10 @@ test("userPath", assert => {
assert.equal(userPath('eviltrout'), '/u/eviltrout');
assert.equal(userPath('hp.json'), '/u/hp.json');
});
test("userPath with BaseUri", assert => {
Discourse.BaseUri = "/forum";
assert.equal(userPath(), '/forum/u');
assert.equal(userPath('eviltrout'), '/forum/u/eviltrout');
assert.equal(userPath('hp.json'), '/forum/u/hp.json');
});