style: gofmt cabana mail routes and postcard store test

This commit is contained in:
Jakub Zych
2026-11-18 18:42:59 +01:00
parent 66ec8de315
commit 830f305376
2 changed files with 5 additions and 5 deletions

View File

@@ -120,7 +120,7 @@ func TestSync(t *testing.T) {
})
t.Run("database_only_layouts_untouched", func(t *testing.T) {
if err := gdb.Exec(`INSERT INTO `+LayoutsTable+` (code, source, name, content_html, is_custom) VALUES ('promo', NULL, 'Promo', '<div>{{ .Content }}</div>', TRUE)
if err := gdb.Exec(`INSERT INTO ` + LayoutsTable + ` (code, source, name, content_html, is_custom) VALUES ('promo', NULL, 'Promo', '<div>{{ .Content }}</div>', TRUE)
ON CONFLICT (code) DO UPDATE SET name = EXCLUDED.name`).Error; err != nil {
t.Fatal(err)
}
@@ -153,7 +153,7 @@ ON CONFLICT (code) DO UPDATE SET name = EXCLUDED.name`).Error; err != nil {
if subject == "Custom" {
t.Fatalf("subject still %q after reset", subject)
}
if err := gdb.Exec(`INSERT INTO `+LayoutsTable+` (code, source, name, content_html, is_custom) VALUES ('promo2', NULL, 'Promo2', 'x', TRUE)
if err := gdb.Exec(`INSERT INTO ` + LayoutsTable + ` (code, source, name, content_html, is_custom) VALUES ('promo2', NULL, 'Promo2', 'x', TRUE)
ON CONFLICT (code) DO NOTHING`).Error; err != nil {
t.Fatal(err)
}