From 607d0b6982483ae66ced56bfa8fca479775a1aff Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Fri, 23 Feb 2024 07:30:23 -0800 Subject: [PATCH] fix: one more test assertion --- format/defs.bzl | 2 ++ format/test/format_test.bats | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/format/defs.bzl b/format/defs.bzl index c3f3dbc9..2ead1cd4 100644 --- a/format/defs.bzl +++ b/format/defs.bzl @@ -51,6 +51,8 @@ def format_multirun(name, **kwargs): # Target name should be human-readable since multirun 'print_targets' will echo it, e.g. # Running @@//tools/format:format_Protocol_Buffer_with_buf + # Ideally multirun could print a message like "Formatting Protocol Buffer with Buf", see + # https://github.com/keith/rules_multirun/issues/31 target_name = "_".join([name, lang.replace(" ", "_"), "with", toolname]) for mode in ["check", "fix"]: diff --git a/format/test/format_test.bats b/format/test/format_test.bats index 7b533108..f112a2ca 100644 --- a/format/test/format_test.bats +++ b/format/test/format_test.bats @@ -22,8 +22,8 @@ bats_load_library "bats-assert" run bazel run //format/test:format_JavaScript_with_prettier README.md example/.eslintrc.cjs assert_success - assert_output --partial "Formatting JavaScript with Prettier..." - refute_output --partial "Formatting TypeScript with Prettier..." + assert_output --partial "README.md" + refute_output --partial "file.ts" } @test "should run buildozer on starlark" {