style: gofmt cabana mail routes and postcard store test
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user