Skip to content

Commit 429c1a9

Browse files
committed
chore: freestyle with possible test design
1 parent a94e398 commit 429c1a9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

ferro/spec/action_migrate_up_test.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,24 @@ spec:
5757
cli.AssertOutputContains(t, "completed v1 create_animals")
5858
cli.ResetAllOutputs()
5959
// cli.AssertSchemaMigrationTable(t, "public", "v1")
60+
// TODO:
61+
// - count records in schema migration table
62+
// - read records in schema migration table
63+
// - check if table exists
64+
// - check if table does not exists
65+
// - fix english with asserts Contains? NotContain? be consistent
66+
67+
// cli.AssertRecordsCount("test", "public", 0)
68+
// ...
69+
// cli.AssertRecordsCount("test", "public", 1)
70+
71+
// audit := cli.UseAudit("test", "public")
72+
// ...
73+
// audit.AssertEvent(1, "pending")
74+
75+
// query := cli.UseQuery("test", "public")
76+
// query.AssertTableExists("animals")
77+
// query.AssertCount("table", 1)
6078
}
6179

6280
// func TestActionMigrateUpWithError(t *testing.T) {

0 commit comments

Comments
 (0)