From b6939093ebdf9d001ccc2d8928a5298ccb6e7109 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 1 Aug 2018 11:21:46 +0800 Subject: [PATCH] Fix JS tests. --- test/javascripts/helpers/create-pretender.js.es6 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/javascripts/helpers/create-pretender.js.es6 b/test/javascripts/helpers/create-pretender.js.es6 index 7fcd5269d2e..a206634abc7 100644 --- a/test/javascripts/helpers/create-pretender.js.es6 +++ b/test/javascripts/helpers/create-pretender.js.es6 @@ -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" });