projects
/
webpac2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test excell file
[webpac2]
/
t
/
5-output-json.t
diff --git
a/t/5-output-json.t
b/t/5-output-json.t
index
778dfc8
..
90e92ab
100755
(executable)
--- a/
t/5-output-json.t
+++ b/
t/5-output-json.t
@@
-1,26
+1,20
@@
#!/usr/bin/perl -w
#!/usr/bin/perl -w
+use strict;
+use blib;
+
use Test::More tests => 14;
use Test::More tests => 14;
-use Test::Exception;
-use Cwd qw/abs_path/;
+
use JSON;
use JSON;
-use File::Slurp;
-use Data::Dump qw/dump/;
-use blib;
-use strict;
BEGIN {
BEGIN {
+use_ok( 'WebPAC::Test' );
use_ok( 'WebPAC::Output::JSON' );
}
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";
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' );
ok( $out->init, 'init' );