Saved filters #655

Merged
konrad merged 29 commits from feature/saved-filters into master 2020-09-26 21:02:18 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 8a3a6ae044 - Show all commits

View File

@ -73,7 +73,7 @@ func InitTestFixtures(tablenames ...string) (err error) {
return nil
}
// AssertDBExists checks and asserts the existance of certain entries in the db
// AssertDBExists checks and asserts the existence of certain entries in the db
func AssertDBExists(t *testing.T, table string, values map[string]interface{}) {
v := make(map[string]interface{})
exists, err := x.Table(table).Where(values).Get(&v)
@ -81,7 +81,7 @@ func AssertDBExists(t *testing.T, table string, values map[string]interface{}) {
assert.True(t, exists, fmt.Sprintf("Entries %v do not exist in table %s", values, table))
}
// AssertDBMissing checks and asserts the nonexistance of certain entries in the db
// AssertDBMissing checks and asserts the nonexiste nce of certain entries in the db
func AssertDBMissing(t *testing.T, table string, values map[string]interface{}) {
v := make(map[string]interface{})
exists, err := x.Table(table).Where(values).Exist(&v)