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>
This commit is contained in:
14
plugin_test.go
Normal file
14
plugin_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user