/usr/share/perl5/Code/TidyAll/t/Plugin/JSBeautify.pm is in libcode-tidyall-perl 0.20-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | package Code::TidyAll::t::Plugin::JSBeautify;
$Code::TidyAll::t::Plugin::JSBeautify::VERSION = '0.20';
use Test::Class::Most parent => 'Code::TidyAll::t::Plugin';
sub test_main : Tests {
my $self = shift;
my $source = 'sp.toggleResult=function(id){foo(id)}';
$self->tidyall(
source => $source,
expect_tidy => 'sp.toggleResult = function(id) {\n foo(id)\n}\n',
);
$self->tidyall(
source => $source,
conf => { argv => '--indent-size 3 --brace-style expand' },
expect_tidy => 'sp.toggleResult = function(id)\n{\n foo(id)\n}\n',
);
}
1;
|