MCPcopy Index your code
hub / github.com/coder/coder / TestDefaultSupportLinks

Function TestDefaultSupportLinks

enterprise/coderd/appearance_test.go:280–293  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

278}
279
280func TestDefaultSupportLinks(t *testing.T) {
281 t.Parallel()
282
283 // Don't need to set the license, as default links are passed without it.
284 adminClient, adminUser := coderdenttest.New(t, &coderdenttest.Options{DontAddLicense: true})
285 anotherClient, _ := coderdtest.CreateAnotherUser(t, adminClient, adminUser.OrganizationID)
286
287 ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitMedium)
288 defer cancel()
289
290 appr, err := anotherClient.Appearance(ctx)
291 require.NoError(t, err)
292 require.Equal(t, codersdk.DefaultSupportLinks(codersdk.DefaultDocsURL()), appr.SupportLinks)
293}

Callers

nothing calls this directly

Calls 6

NewFunction · 0.92
CreateAnotherUserFunction · 0.92
DefaultSupportLinksFunction · 0.92
DefaultDocsURLFunction · 0.92
AppearanceMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected