mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:21:04 +08:00
Minor cleanup of /users/
rename
This commit is contained in:
@ -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');
|
||||
});
|
||||
|
Reference in New Issue
Block a user