From a0999d8d7316e6077e6b071c07a0e161c8dad4c7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 13 Feb 2025 09:18:49 +0100 Subject: [PATCH] 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 --- xt/js_tidy.t | 2 +- xt/vue_tidy.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xt/js_tidy.t b/xt/js_tidy.t index 3cfedd1dca..d2deb04502 100755 --- a/xt/js_tidy.t +++ b/xt/js_tidy.t @@ -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" ); } diff --git a/xt/vue_tidy.t b/xt/vue_tidy.t index 3b16c4b003..03ab503308 100755 --- a/xt/vue_tidy.t +++ b/xt/vue_tidy.t @@ -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" ); } -- 2.39.5