From deba59dc00ed42bd918c263cc0958318e33e87f5 Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Fri, 25 Aug 2017 15:17:12 +0100 Subject: [PATCH] Add test for showing display name and user type correctly --- t/api/login.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/api/login.t b/t/api/login.t index e2fd731..08cf959 100644 --- a/t/api/login.t +++ b/t/api/login.t @@ -47,6 +47,8 @@ $t->post_ok('/api/login' => json => { }) ->status_is(200) ->json_is('/success', Mojo::JSON->true) + ->json_is('/display_name', 'Display Guy') + ->json_is('/user_type', 'customer') ->json_has('/session_key'); my $session_key = $t->tx->res->json->{session_key};