(t *testing.T)
| 278 | } |
| 279 | |
| 280 | func 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 | } |
nothing calls this directly
no test coverage detected