OSDN Git Service

t: fix some invalid test
[newslash/newslash.git] / src / newslash_web / t / api / user.t
index 95734ca..d7dfc9b 100644 (file)
@@ -81,7 +81,7 @@ subtest 'validate new users' => sub {
       ->status_is(400)
       ->content_type_like(qr|application/json|)
       ->json_has('/error')
-      ->json_is('/email_error', "EMAIL_EXISTS")
+      ->json_is('/email_error', "ADDRESS_EXISTS")
       ->or(sub {diag "message: " . dumper($t->tx->res->json);});
 
     # invalid email
@@ -89,7 +89,7 @@ subtest 'validate new users' => sub {
       ->status_is(400)
       ->content_type_like(qr|application/json|)
       ->json_has('/error')
-      ->json_is('/email_error', "INVALID_EMAIL")
+      ->json_is('/email_error', "INVALID_ADDRESS")
       ->or(sub {diag "message: " . dumper($t->tx->res->json);});
 
     # ok