forked from longtao.wu/droboticflow
16 lines
423 B
Go
16 lines
423 B
Go
package api
|
|
|
|
import (
|
|
"droboticflow/internal/domain"
|
|
"testing"
|
|
)
|
|
|
|
func TestCaptureCompletionNormalizesLegacyManifestRequirement(t *testing.T) {
|
|
for _, mode := range []string{"", "manifest_and_files", "required_files"} {
|
|
c := normalizeCaptureAutomationConfig(domain.CaptureAutomationConfig{CompletionMode: mode})
|
|
if c.CompletionMode != "required_files" {
|
|
t.Fatalf("completion mode: %s", c.CompletionMode)
|
|
}
|
|
}
|
|
}
|