mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
Fix JS tests.
This commit is contained in:
parent
919e8db686
commit
b6939093eb
@ -295,6 +295,10 @@ export default function() {
|
||||
return response({ csrf: "mgk906YLagHo2gOgM1ddYjAN4hQolBdJCqlY6jYzAYs=" });
|
||||
});
|
||||
|
||||
this.get("/groups/check-name", () => {
|
||||
return response({ available: true });
|
||||
});
|
||||
|
||||
this.get("/u/check_username", function(request) {
|
||||
if (request.queryParams.username === "taken") {
|
||||
return response({ available: false, suggestion: "nottaken" });
|
||||
|
Loading…
x
Reference in New Issue
Block a user