Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4c2344f

Browse files
committed
make gen
1 parentd7a0abf commit4c2344f

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

‎coderd/templates_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,13 @@ func TestTemplatesByOrganization(t *testing.T) {
443443
templates,err=client.Templates(ctx)
444444
require.NoError(t,err)
445445
require.Len(t,templates,2)
446+
447+
org,err:=client.Organization(ctx,user.OrganizationID)
448+
require.NoError(t,err)
449+
for_,tmpl:=rangetemplates {
450+
require.Equal(t,tmpl.OrganizationID,user.OrganizationID,"organization ID")
451+
require.Equal(t,tmpl.OrganizationName,org.Name,"organization name")
452+
}
446453
})
447454
t.Run("MultipleOrganizations",func(t*testing.T) {
448455
t.Parallel()
@@ -474,6 +481,9 @@ func TestTemplatesByOrganization(t *testing.T) {
474481
templates,err=user.Templates(ctx)
475482
require.NoError(t,err)
476483
require.Len(t,templates,2)
484+
for_,tmpl:=rangetemplates {
485+
require.Equal(t,tmpl.OrganizationName,org2.Name,"organization name on template")
486+
}
477487
})
478488
}
479489

‎docs/cli/templates_list.md

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp