Fix JS tests.

This commit is contained in:
Guo Xiang Tan 2018-08-01 11:21:46 +08:00
parent 919e8db686
commit b6939093eb
1 changed files with 4 additions and 0 deletions

View File

@ -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" });