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:
Jonathan Druart 2025-02-13 09:18:49 +01:00 committed by Katrin Fischer
parent 7d65987a4a
commit 4b5d6afc85
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834
2 changed files with 2 additions and 2 deletions

View file

@ -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" );
}

View file

@ -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" );
}