From 38a531735ccb1b9aeeea53eb1962349c46b92126 Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Sun, 27 Jul 2025 22:08:33 +0800 Subject: [PATCH] fix(test): fix title checks in `TestConverterCrypto` for consistency * Changed title checks to reflect the updated search term "Search Google for". * Ensures that expected titles in tests match the new search format. --- wox.core/test/converter_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wox.core/test/converter_test.go b/wox.core/test/converter_test.go index e1033907..d1267e43 100644 --- a/wox.core/test/converter_test.go +++ b/wox.core/test/converter_test.go @@ -79,13 +79,13 @@ func TestConverterCrypto(t *testing.T) { ExpectedAction: "Search", TitleCheck: func(title string) bool { // More flexible check - should contain "Search for" and part of the query - return strings.Contains(title, "Search for") && strings.Contains(title, "1btc dsfsdf") + return strings.Contains(title, "Search Google for") && strings.Contains(title, "1btc dsfsdf") }, }, { Name: "BTC plus number", Query: "1btc + 1", - ExpectedTitle: "Search for 1btc + 1", + ExpectedTitle: "Search Google for 1btc + 1", ExpectedAction: "Search", }, }