From 1435739063e962afc4f6d9dca03b05087074afb9 Mon Sep 17 00:00:00 2001 From: Soner Sayakci Date: Mon, 15 Jan 2024 18:14:26 +0100 Subject: [PATCH] fix: snippet validator test --- extension/snippet_validator_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/snippet_validator_test.go b/extension/snippet_validator_test.go index 1e0cc141..c9e836f9 100644 --- a/extension/snippet_validator_test.go +++ b/extension/snippet_validator_test.go @@ -74,6 +74,6 @@ func TestSnippetValidateStorefrontByPathTestDifferent(t *testing.T) { assert.NoError(t, validateStorefrontSnippetsByPath(tmpDir, tmpDir, context)) assert.Len(t, context.errors, 2) assert.Len(t, context.warnings, 0) - assert.Contains(t, "key /a is missing, but defined in the main language file", context.errors[0]) - assert.Contains(t, "missing key \"/b\" in this snippet file, but defined in the main language", context.errors[1]) + assert.Contains(t, context.errors[0], "key /a is missing, but defined in the main language file") + assert.Contains(t, context.errors[1], "missing key \"/b\" in this snippet file, but defined in the main language") }