lemonldap-ng/lemonldap-ng-manager/t/02-HTML-template.t

22 lines
446 B
Perl
Raw Normal View History

#!/usr/bin/env perl -I pl/lib
use Test::More;
use JSON;
use strict;
use 5.10.0;
require 'test/test-lib.pm';
my $res;
ok( $res = get('/'), 'Succeed to get /' );
my %hdrs = @{ $res->[1] };
ok( $res->[0] == 200, 'Return a 200 code' );
ok( $hdrs{'Content-Type'} =~ /text\/html$/i, 'Content is declared as HTML' );
ok( $res->[2]->[0] =~ /<html/si, 'It contains a html tag' );
count(4);
done_testing(count());