Skip to content

Commit afd5a9d

Browse files
committed
docs: assertion design proposal
1 parent c984e73 commit afd5a9d

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

ferro/spec/action_migrate_up_test.go

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,11 @@ spec:
8383
// - check if table exists
8484
// - check if table does not exists
8585

86-
// cli.AssertRecordsCount("test", "public", 0)
87-
// ...
88-
// cli.AssertRecordsCount("test", "public", 1)
89-
90-
// audit := cli.UseAudit("test", "public")
91-
// ...
92-
// audit.AssertEvent(1, "pending")
93-
94-
// query := cli.UseQuery("test", "public")
95-
// query.AssertTableExists("animals")
96-
// query.AssertCount("table", 1)
86+
// data := cli.Data("test", "public")
87+
// data.AssertRowCount("animals", 1)
88+
// data.AssertTableExists("animals")
89+
// data.AssertTableNotExists("animals")
90+
// data
9791
}
9892

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

0 commit comments

Comments
 (0)