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

Function Test_runUpdateCmd_outputJSON

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

Source from the content-addressed store, hash-verified

92}
93
94func Test_runUpdateCmd_outputJSON(t *testing.T) {
95 srv := newServer(t)
96 defer srv.Close()
97
98 opts, out := newOpts(t, srv, false, "json")
99 require.NoError(t, runUpdateCmd(opts))
100
101 got := out.String()
102 assert.Contains(t, got, `"id":"APP1"`)
103 assert.Contains(t, got, `"name":"Renamed App"`)
104}
105
106func TestNewUpdateCmd(t *testing.T) {
107 f, _ := test.NewFactory(false, nil, nil, "")

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