Fix spelling using misspell

This commit is contained in:
eikendev 2023-04-01 17:24:48 +02:00
parent 50a92b6d22
commit 5e640800fe
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
6 changed files with 16 additions and 16 deletions

View file

@ -39,14 +39,14 @@ func TestApi_getID(t *testing.T) {
idReturned, err := getID(c)
if req.ShouldStatus >= 200 && req.ShouldStatus < 300 {
require.NoErrorf(err, "getId with id %v (%t) returned an error altough it should not: %v", id, id, err)
require.NoErrorf(err, "getId with id %v (%t) returned an error although it should not: %v", id, id, err)
idUint, ok := id.(uint)
if ok {
assert.Equalf(idReturned, idUint, "getApi id was set to %d but result is %d", idUint, idReturned)
}
} else {
assert.Errorf(err, "getId with id %v (%t) returned no error altough it should", id, id)
assert.Errorf(err, "getId with id %v (%t) returned no error although it should", id, id)
}
assert.Equalf(w.Code, req.ShouldStatus, "getApi id was set to %v (%T) and should result in status code %d but code is %d", id, id, req.ShouldStatus, w.Code)
@ -81,10 +81,10 @@ func TestApi_getApplication(t *testing.T) {
app, err := getApplication(c, TestDatabase)
if req.ShouldStatus >= 200 && req.ShouldStatus < 300 {
require.NoErrorf(err, "getApplication with id %v (%t) returned an error altough it should not: %v", id, id, err)
require.NoErrorf(err, "getApplication with id %v (%t) returned an error although it should not: %v", id, id, err)
assert.Equalf(app.ID, id, "getApplication id was set to %d but resulting app id is %d", id, app.ID)
} else {
assert.Errorf(err, "getApplication with id %v (%t) returned no error altough it should", id, id)
assert.Errorf(err, "getApplication with id %v (%t) returned no error although it should", id, id)
}
assert.Equalf(w.Code, req.ShouldStatus, "getApplication id was set to %v (%T) and should result in status code %d but code is %d", id, id, req.ShouldStatus, w.Code)
@ -116,11 +116,11 @@ func TestApi_getUser(t *testing.T) {
user, err := getUser(c, TestDatabase)
if req.ShouldStatus >= 200 && req.ShouldStatus < 300 {
require.NoErrorf(err, "getUser with id %v (%t) returned an error altough it should not: %v", id, id, err)
require.NoErrorf(err, "getUser with id %v (%t) returned an error although it should not: %v", id, id, err)
assert.Equalf(user.ID, id, "getUser id was set to %d but resulting app id is %d", id, user.ID)
} else {
assert.Errorf(err, "getUser with id %v (%t) returned no error altough it should", id, id)
assert.Errorf(err, "getUser with id %v (%t) returned no error although it should", id, id)
}
assert.Equalf(w.Code, req.ShouldStatus, "getUser id was set to %v (%T) and should result in status code %d but code is %d", id, id, req.ShouldStatus, w.Code)