test: pass new arg ot NewModel
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user