Files
sm-journal-plugin/plugin_test.go
Jakub Zych 54322128fb feat(15-01): clone journal plugin with translatable Post tracer
- 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>
2026-10-06 18:22:47 +02:00

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)
}
}