Skip to content

Commit a56439f

Browse files
committed
chore: update View method signature in tests
1 parent 67f8ede commit a56439f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

exec_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package tea
22

33
import (
44
"bytes"
5+
"fmt"
56
"os/exec"
67
"runtime"
78
"testing"
@@ -34,7 +35,7 @@ func (m *testExecModel) Update(msg Msg) (*testExecModel, Cmd) {
3435
return m, nil
3536
}
3637

37-
func (m *testExecModel) View() Frame {
38+
func (m *testExecModel) View() fmt.Stringer {
3839
return NewFrame("\n")
3940
}
4041

tea_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"bytes"
55
"context"
66
"errors"
7+
"fmt"
78
"io"
89
"sync/atomic"
910
"testing"
@@ -50,7 +51,7 @@ func (m *testModel) Update(msg Msg) (*testModel, Cmd) {
5051
return m, nil
5152
}
5253

53-
func (m *testModel) View() Frame {
54+
func (m *testModel) View() fmt.Stringer {
5455
m.executed.Store(true)
5556
return NewFrame("success\n")
5657
}

0 commit comments

Comments
 (0)