This commit is contained in:
@@ -208,8 +208,7 @@ func TestCompleteModelRedactsApplicationErrorsBeforeRendering(t *testing.T) {
|
||||
model := resizedModel(t, module, themeModeNoColor, 80, 24)
|
||||
updated, cmd := model.Update(keyMessage("r"))
|
||||
model = updated.(Model)
|
||||
updated, _ = model.Update(cmd())
|
||||
model = updated.(Model)
|
||||
model, _ = applyOperationCommand(t, model, cmd)
|
||||
model = updateKey(model, "e")
|
||||
view := model.View()
|
||||
if strings.Contains(view, secret) || !strings.Contains(view, "https://bob:REDACTED@proxy.example:8080") {
|
||||
@@ -228,8 +227,7 @@ func TestCompleteModelNarrowShellKeepsLastProductionTargetStatusAndActionsVisibl
|
||||
|
||||
updated, refresh := model.Update(keyMessage("r"))
|
||||
model = updated.(Model)
|
||||
updated, _ = model.Update(refresh())
|
||||
model = updated.(Model)
|
||||
model, _ = applyOperationCommand(t, model, refresh)
|
||||
|
||||
assertUsableFrame(t, model.View(), 80, 24,
|
||||
"> ! Drifted Docker daemon",
|
||||
|
||||
Reference in New Issue
Block a user