diff --git a/services/search/pkg/search/scope_test.go b/services/search/pkg/search/scope_test.go index fb4eae7287..eac8bb36f0 100644 --- a/services/search/pkg/search/scope_test.go +++ b/services/search/pkg/search/scope_test.go @@ -22,6 +22,8 @@ var _ = DescribeTable("ExtractScope", Entry("at the start", `scope:1$2!3 AND name:x`, `name:x`, `1$2!3`), Entry("in the middle", `name:x AND scope:1$2!3 AND tag:y`, `name:x AND tag:y`, `1$2!3`), Entry("joined implicitly", `name:x scope:1$2!3`, `name:x`, `1$2!3`), + Entry("joined implicitly at the start", `scope:1$2!3 name:x`, `name:x`, `1$2!3`), + Entry("between free text", `foo scope:1$2!3 bar`, `foo bar`, `1$2!3`), Entry("joined with OR", `name:x OR scope:1$2!3`, `name:x`, `1$2!3`), Entry("negated", `name:x AND NOT scope:1$2!3`, `name:x`, `1$2!3`), Entry("negated at the start", `NOT scope:1$2!3 AND name:x`, `name:x`, `1$2!3`),