Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da9e3e54cb |
@@ -64,7 +64,7 @@ func TestPartEvent(t *testing.T) {
|
|||||||
wantLines int
|
wantLines int
|
||||||
wantUnread int
|
wantUnread int
|
||||||
}{
|
}{
|
||||||
{name: "own part", from: "alice", wantLines: 0, wantUnread: 0},
|
{name: "own part", from: "erin", wantLines: 0, wantUnread: 0},
|
||||||
{name: "other member", from: "bob", wantLines: 1, wantUnread: 1},
|
{name: "other member", from: "bob", wantLines: 1, wantUnread: 1},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ func TestPartEvent(t *testing.T) {
|
|||||||
t.Run(test.name, func(t *testing.T) {
|
t.Run(test.name, func(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
app := &App{ui: NewUI(), nick: "alice"}
|
app := &App{ui: NewUI(), nick: "erin"}
|
||||||
runUI(t, app.ui)
|
runUI(t, app.ui)
|
||||||
|
|
||||||
app.handleServerMessage(&api.Message{
|
app.handleServerMessage(&api.Message{
|
||||||
|
|||||||
Reference in new issue
Block a user