MCPcopy Create free account
hub / github.com/algolia/cli / Test_runUpdateCmd

Function Test_runUpdateCmd

pkg/cmd/application/update/update_test.go:82–92  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

80}
81
82func Test_runUpdateCmd(t *testing.T) {
83 srv := newServer(t)
84 defer srv.Close()
85
86 opts, out := newOpts(t, srv, true, "")
87 require.NoError(t, runUpdateCmd(opts))
88
89 got := out.String()
90 assert.Contains(t, got, "APP1")
91 assert.Contains(t, got, "Renamed App")
92}
93
94func Test_runUpdateCmd_outputJSON(t *testing.T) {
95 srv := newServer(t)

Callers

nothing calls this directly

Calls 5

newServerFunction · 0.70
newOptsFunction · 0.70
runUpdateCmdFunction · 0.70
CloseMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected