#!/usr/bin/perl -w
+use strict;
+use blib;
+
use Test::More tests => 14;
-use Test::Exception;
-use Cwd qw/abs_path/;
+
use JSON;
-use File::Slurp;
-use Data::Dump qw/dump/;
-use blib;
-use strict;
BEGIN {
+use_ok( 'WebPAC::Test' );
use_ok( 'WebPAC::Output::JSON' );
}
-my $debug = shift @ARGV;
-
-ok(my $abs_path = abs_path($0), "abs_path");
-$abs_path =~ s#/[^/]*$#/#; #
-diag "abs_path: $abs_path";
my $path = "$abs_path/out/test.js";
-ok(my $out = new WebPAC::Output::JSON({ path => $path }), "new");
+ok(my $out = new WebPAC::Output::JSON({ path => $path, %LOG }), "new");
ok( $out->init, 'init' );