From 5a9970ff59e754f442ce9fca1cb4a89f4e09c3ca Mon Sep 17 00:00:00 2001 From: jusax23 Date: Sun, 12 Mar 2023 00:19:58 +0100 Subject: [PATCH] post tests signup --- tests/tests/post.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/tests/post.js b/tests/tests/post.js index 65b48fa..c0e9c48 100644 --- a/tests/tests/post.js +++ b/tests/tests/post.js @@ -14,6 +14,21 @@ const list = [ server: "localhost:7224", accountKey }, "ok", ""); + await req({}, "signup", { + name: name1, + server: "localhost:7224", + accountKey + }, "error", "existence"); + await req({}, "signup", { + name: name2, + server: "localhost:7224", + accountKey + }, "ok", ""); + await req({}, "signup", { + name: name2, + server: "localhost:7224", + accountKey + }, "error", "config"); }] ];