diff --git a/template/builder_test.go b/template/builder_test.go index a53f0cf89f699fb76ccaf8a609c665532de1b1e1..fa3892290b78efcf33874f9c965e2305eaf01c67 100644 --- a/template/builder_test.go +++ b/template/builder_test.go @@ -113,7 +113,14 @@ func TestBuilder_Execute(t *testing.T) { return &content.Content{Collections: collsSvc}, func(t *testing.T) { collsSvc.AssertExpectations(t) } }, str: "{{ system.Collection.Name }}", want: "cars", wantErr: false}, {name: "system without account", SpaceID: "space", str: "hello {{ system.Organization.Name }}", want: "", wantErr: true}, - {name: "with html builder", str: "{{ . }}", data: "<script>alert(localStorage.secret)</script>", want: "<script>alert(localStorage.secret)</script>", htmlBuilder: true, wantErr: false}, + { + name: "with html builder", + str: "{{ . }}", + data: "<script>alert(localStorage.secret)</script>", + want: "<script>alert(localStorage.secret)</script>", + htmlBuilder: true, + wantErr: false, + }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) {