feat: add localized ledger explorer dashboard
This commit is contained in:
@@ -25,3 +25,16 @@ func TestInitialMigrationContainsLedgerSafetyGuards(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestExplorerFilterMigrationAddsSupportingIndexes(t *testing.T) {
|
||||
contents, err := migrationFiles.ReadFile("migrations/000002_explorer_filters.up.sql")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
schema := string(contents)
|
||||
for _, required := range []string{"journals_effect_recorded_idx", "lower(effect_kind)", "ledger_accounts_user_owner_idx", "USER_AVAILABLE", "USER_FROZEN"} {
|
||||
if !strings.Contains(schema, required) {
|
||||
t.Fatalf("explorer filter migration is missing %q", required)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user