fixes
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package catalog
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/google/uuid"
|
||||
@@ -24,3 +25,14 @@ func TestValidateCloneCompanies(t *testing.T) {
|
||||
t.Fatalf("unexpected error: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCloneFieldSourcesSQLClearsEnhanceHash(t *testing.T) {
|
||||
t.Parallel()
|
||||
const want = "enhance_input_hash"
|
||||
if !strings.Contains(cloneProcessedFieldSourcesSQL, want) {
|
||||
t.Fatalf("clone field_sources SQL must remove %q; got %q", want, cloneProcessedFieldSourcesSQL)
|
||||
}
|
||||
if !strings.Contains(cloneProcessedFieldSourcesSQL, "-") {
|
||||
t.Fatalf("expected jsonb key removal operator in %q", cloneProcessedFieldSourcesSQL)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user