forked from Mirrors/jsonapi
Corrected spelling mistakes.
This commit is contained in:
parent
3b01bb5fe6
commit
5e0c586099
|
@ -19,7 +19,7 @@ var (
|
|||
// was not a valid numeric type.
|
||||
ErrBadJSONAPIID = errors.New(
|
||||
"id should be either string, int(8,16,32,64) or uint(8,16,32,64)")
|
||||
// ErrExpectedSlice is returned when a variable or arugment was expected to
|
||||
// ErrExpectedSlice is returned when a variable or argument was expected to
|
||||
// be a slice of *Structs; MarshalMany will return this error when its
|
||||
// interface{} argument is invalid.
|
||||
ErrExpectedSlice = errors.New("models should be a slice of struct pointers")
|
||||
|
|
|
@ -290,9 +290,9 @@ func TestOmitsEmptyAnnotation(t *testing.T) {
|
|||
t.Fatalf("Was expecting the data.attributes.pages key/value to have been omitted - it was not and had a value of %v", val)
|
||||
}
|
||||
|
||||
// Verify the implicity omitted fields were omitted
|
||||
// Verify the implicitly omitted fields were omitted
|
||||
if val, exists := attributes["PublishedAt"]; exists {
|
||||
t.Fatalf("Was expecting the data.attributes.PublishedAt key/value to have been implicity omitted - it was not and had a value of %v", val)
|
||||
t.Fatalf("Was expecting the data.attributes.PublishedAt key/value to have been implicitly omitted - it was not and had a value of %v", val)
|
||||
}
|
||||
|
||||
// Verify the unset fields were not omitted
|
||||
|
@ -326,7 +326,7 @@ func TestHasPrimaryAnnotation(t *testing.T) {
|
|||
}
|
||||
|
||||
if data.ID != "5" {
|
||||
t.Fatalf("ID not transfered")
|
||||
t.Fatalf("ID not transferred")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue