Bug 39119: Make js_tidy and vue_tidy test use the tidy script
They were still using prettier directly. They should use the tidy.pl as it is doing some wrapper work. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
7d65987a4a
commit
4b5d6afc85
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ plan tests => scalar @js_files;
|
|||
|
||||
foreach my $filepath (@js_files) {
|
||||
chomp $filepath;
|
||||
my $tidy = qx{yarn --silent run prettier $filepath};
|
||||
my $tidy = qx{perl misc/devel/tidy.pl --silent --no-write $filepath};
|
||||
my $content = read_file $filepath;
|
||||
ok( $content eq $tidy, "$filepath should be kept tidy" );
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ plan tests => scalar @vue_files;
|
|||
|
||||
foreach my $filepath (@vue_files) {
|
||||
chomp $filepath;
|
||||
my $tidy = qx{yarn --silent run prettier $filepath};
|
||||
my $tidy = qx{perl misc/devel/tidy.pl --silent --no-write $filepath};
|
||||
my $content = read_file $filepath;
|
||||
ok( $content eq $tidy, "$filepath should be kept tidy" );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue