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

Function TestAuthAborted

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

Source from the content-addressed store, hash-verified

52}
53
54func TestAuthAborted(t *testing.T) {
55 tracker := NewFlowTracker()
56 tracker.SetStep(StepAppSelect)
57
58 event := AuthAborted(FlowLogin, tracker)
59 assert.Equal(t, EventAuthAborted, event.Name)
60 assert.Equal(t, StepAppSelect, event.Properties["step"])
61}
62
63func TestAuthFailed(t *testing.T) {
64 tracker := NewFlowTracker()

Callers

nothing calls this directly

Calls 3

SetStepMethod · 0.95
NewFlowTrackerFunction · 0.85
AuthAbortedFunction · 0.85

Tested by

no test coverage detected