- Register golem15.journal requiring exactly golem15.translate - Squash golem15_journal_posts DDL with unique slug and JSONB columns - Persist one en/pl Post through translate helpers on real Postgres Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
334 B
Go
15 lines
334 B
Go
package journal
|
|
|
|
import "testing"
|
|
|
|
func TestPostTranslatableSmoke(t *testing.T) {
|
|
p := &Plugin{}
|
|
if p.ID() != "golem15.journal" {
|
|
t.Fatalf("ID = %q, want golem15.journal", p.ID())
|
|
}
|
|
got := p.Requires()
|
|
if len(got) != 1 || got[0] != "golem15.translate" {
|
|
t.Fatalf("Requires = %#v, want exactly [golem15.translate]", got)
|
|
}
|
|
}
|