]> git.giacomolli.uk - onechat/blobdiff - voice_helper_test.go
Keep scenario tests with their implementation
[onechat] / voice_helper_test.go
index 326d7a831ef7141933e84aa04223322e3d473a2d..9408415c92c0895c2f9d9be85b41c6f3baeee46a 100644 (file)
@@ -9,6 +9,12 @@ import (
        "github.com/stretchr/testify/require"
 )
 
        "github.com/stretchr/testify/require"
 )
 
+const voiceTestScript = `
+while [ "$1" != --output-file ]; do shift; done
+shift
+printf 'A made-up voice transcript.\n' > "$1.txt"
+`
+
 func voiceTestInput(t *testing.T, script string) (*VoiceStore, *VoiceTranscriber) {
        t.Helper()
 
 func voiceTestInput(t *testing.T, script string) (*VoiceStore, *VoiceTranscriber) {
        t.Helper()