Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7e31a34

Browse files
committed
chore(coderd/notifications): regenerate notification testdata from the makefile
1 parent 70f3486 commit 7e31a34

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ update-golden-files: \
664664
enterprise/tailnet/testdata/.gen-golden \
665665
tailnet/testdata/.gen-golden \
666666
coderd/.gen-golden \
667+
coderd/notifications/.gen-golden \
667668
provisioner/terraform/testdata/.gen-golden
668669
.PHONY: update-golden-files
669670

@@ -695,6 +696,10 @@ coderd/.gen-golden: $(wildcard coderd/testdata/*/*.golden) $(GO_SRC_FILES) $(wil
695696
go test ./coderd -run="Test.*Golden$$" -update
696697
touch "$@"
697698

699+
coderd/notifications/.gen-golden: $(wildcard coderd/notifications/testdata/*/*.golden) $(GO_SRC_FILES) $(wildcard coderd/notifications/*_test.go)
700+
go test ./coderd/notifications -run="Test.*Golden$$" -update
701+
touch "$@"
702+
698703
provisioner/terraform/testdata/.gen-golden: $(wildcard provisioner/terraform/testdata/*/*.golden) $(GO_SRC_FILES) $(wildcard provisioner/terraform/*_test.go)
699704
go test ./provisioner/terraform -run="Test.*Golden$$" -update
700705
touch "$@"

coderd/notifications/notifications_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,7 @@ func enumerateAllTemplates(t *testing.T) ([]string, error) {
685685
}
686686

687687
func TestNotificationTemplatesCanRender(t *testing.T) {
688+
func TestNotificationTemplates_Golden(t *testing.T) {
688689
t.Parallel()
689690

690691
if !dbtestutil.WillUsePostgres() {

0 commit comments

Comments
 (0)