test: pass new arg ot NewModel
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
25229f1ea8
commit
ada5b2a459
|
@ -65,7 +65,7 @@ func setupAndTeardown() func() {
|
|||
}
|
||||
|
||||
func TestOnOff(t *testing.T) {
|
||||
m := ui.NewModel(currentUser.Username, currentUser.HomeDir, true)
|
||||
m := ui.NewModel(currentUser.Username, currentUser.HomeDir, "dev-test", true)
|
||||
testModel := teatest.NewTestModel(t, m)
|
||||
|
||||
testModel.Send(tea.KeyMsg{
|
||||
|
@ -81,7 +81,7 @@ func TestAcnOnOff(t *testing.T) {
|
|||
t.Skip("SKIP: https://git.coopcloud.tech/decentral1se/cairde/issues/6")
|
||||
}
|
||||
|
||||
m := ui.NewModel(currentUser.Username, currentUser.HomeDir, true)
|
||||
m := ui.NewModel(currentUser.Username, currentUser.HomeDir, "dev-test", true)
|
||||
testModel := teatest.NewTestModel(t, m)
|
||||
|
||||
testModel.Type("/acn on")
|
||||
|
@ -121,7 +121,7 @@ func TestAcnOnThenQuit(t *testing.T) {
|
|||
t.Skip("SKIP: https://git.coopcloud.tech/decentral1se/cairde/issues/6")
|
||||
}
|
||||
|
||||
m := ui.NewModel(currentUser.Username, currentUser.HomeDir, true)
|
||||
m := ui.NewModel(currentUser.Username, currentUser.HomeDir, "dev-test", true)
|
||||
testModel := teatest.NewTestModel(t, m)
|
||||
|
||||
testModel.Type("/acn on")
|
||||
|
@ -156,7 +156,7 @@ func TestAcnOnThenOnAsksToHold(t *testing.T) {
|
|||
t.Skip("SKIP: https://git.coopcloud.tech/decentral1se/cairde/issues/6")
|
||||
}
|
||||
|
||||
m := ui.NewModel(currentUser.Username, currentUser.HomeDir, true)
|
||||
m := ui.NewModel(currentUser.Username, currentUser.HomeDir, "dev-test", true)
|
||||
testModel := teatest.NewTestModel(t, m)
|
||||
|
||||
testModel.Type("/acn on")
|
||||
|
@ -212,7 +212,7 @@ func TestOnThenOffAsksToWait(t *testing.T) {
|
|||
t.Skip("SKIP: https://git.coopcloud.tech/decentral1se/cairde/issues/6")
|
||||
}
|
||||
|
||||
m := ui.NewModel(currentUser.Username, currentUser.HomeDir, true)
|
||||
m := ui.NewModel(currentUser.Username, currentUser.HomeDir, "dev-test", true)
|
||||
testModel := teatest.NewTestModel(t, m)
|
||||
|
||||
testModel.Type("/acn on")
|
||||
|
@ -268,7 +268,7 @@ func TestAcnOnThenQuitAsksToWait(t *testing.T) {
|
|||
t.Skip("SKIP: https://git.coopcloud.tech/decentral1se/cairde/issues/6")
|
||||
}
|
||||
|
||||
m := ui.NewModel(currentUser.Username, currentUser.HomeDir, true)
|
||||
m := ui.NewModel(currentUser.Username, currentUser.HomeDir, "dev-test", true)
|
||||
testModel := teatest.NewTestModel(t, m)
|
||||
|
||||
testModel.Type("/acn on")
|
||||
|
@ -320,7 +320,7 @@ func TestAcnOnThenQuitAsksToWait(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestAcnOffIsOff(t *testing.T) {
|
||||
m := ui.NewModel(currentUser.Username, currentUser.HomeDir, true)
|
||||
m := ui.NewModel(currentUser.Username, currentUser.HomeDir, "dev-test", true)
|
||||
testModel := teatest.NewTestModel(t, m)
|
||||
|
||||
testModel.Type("/acn off")
|
||||
|
|
Loading…
Reference in New Issue