Unit test for #2661

This commit is contained in:
Maxime Besson 2021-11-23 12:02:17 +01:00
parent 1f30be3634
commit 4df94f96ae
1 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,5 @@
use Test::More;
use Lemonldap::NG::Portal;
use strict;
require 't/test-lib.pm';
@ -55,6 +56,11 @@ ok(
);
my $j = expectJSON($res);
is( $j->{result}, 1, "response has a result key with value 1" );
is(
$j->{version},
$Lemonldap::NG::Portal::VERSION,
"response version is correct"
);
ok(
$res = $client->_get(