Skip to content

Commit

Permalink
fix: snippet validator test
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Jan 15, 2024
1 parent ea85fdc commit 1435739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/snippet_validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

0 comments on commit 1435739

Please sign in to comment.