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

Function TestApplicationCreateAborted_WithReason

pkg/telemetry/events_test.go:98–106  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

96}
97
98func TestApplicationCreateAborted_WithReason(t *testing.T) {
99 tracker := NewFlowTracker()
100 tracker.SetStep(StepTerms)
101
102 event := ApplicationCreateAborted(tracker, AbortReasonDeclinedTerms)
103 assert.Equal(t, EventApplicationCreateAborted, event.Name)
104 assert.Equal(t, StepTerms, event.Properties["step"])
105 assert.Equal(t, AbortReasonDeclinedTerms, event.Properties["reason"])
106}
107
108func TestApplicationPlanChangeCompleted(t *testing.T) {
109 event := ApplicationPlanChangeCompleted(DirectionUpgrade, "free", "grow", NewFlowTracker())

Callers

nothing calls this directly

Calls 3

SetStepMethod · 0.95
NewFlowTrackerFunction · 0.85
ApplicationCreateAbortedFunction · 0.85

Tested by

no test coverage detected