@@ -101,7 +101,7 @@ func TestNewCollectionReturnsErrorGivenDuplicateSchema(t *testing.T) {
101
101
assert .NoError (t , err )
102
102
103
103
_ , err = newTestCollectionWithSchema (ctx , db )
104
- assert .Errorf (t , err , "Collection already exists" )
104
+ assert .Errorf (t , err , "collection already exists" )
105
105
}
106
106
107
107
func TestNewCollectionReturnsErrorGivenNoFields (t * testing.T ) {
@@ -117,7 +117,7 @@ func TestNewCollectionReturnsErrorGivenNoFields(t *testing.T) {
117
117
}
118
118
119
119
_ , err = db .CreateCollection (ctx , desc )
120
- assert .EqualError (t , err , "Collection schema has no fields" )
120
+ assert .EqualError (t , err , "collection schema has no fields" )
121
121
}
122
122
123
123
func TestNewCollectionReturnsErrorGivenNoName (t * testing.T ) {
@@ -133,7 +133,7 @@ func TestNewCollectionReturnsErrorGivenNoName(t *testing.T) {
133
133
}
134
134
135
135
_ , err = db .CreateCollection (ctx , desc )
136
- assert .EqualError (t , err , "Collection requires name to not be empty" )
136
+ assert .EqualError (t , err , "collection requires name to not be empty" )
137
137
}
138
138
139
139
func TestNewCollectionReturnsErrorGivenNoKeyField (t * testing.T ) {
@@ -155,7 +155,7 @@ func TestNewCollectionReturnsErrorGivenNoKeyField(t *testing.T) {
155
155
}
156
156
157
157
_ , err = db .CreateCollection (ctx , desc )
158
- assert .EqualError (t , err , "Collection schema first field must be a DocKey" )
158
+ assert .EqualError (t , err , "collection schema first field must be a DocKey" )
159
159
}
160
160
161
161
func TestNewCollectionReturnsErrorGivenKeyFieldIsNotFirstField (t * testing.T ) {
@@ -181,7 +181,7 @@ func TestNewCollectionReturnsErrorGivenKeyFieldIsNotFirstField(t *testing.T) {
181
181
}
182
182
183
183
_ , err = db .CreateCollection (ctx , desc )
184
- assert .EqualError (t , err , "Collection schema first field must be a DocKey" )
184
+ assert .EqualError (t , err , "collection schema first field must be a DocKey" )
185
185
}
186
186
187
187
func TestNewCollectionReturnsErrorGivenFieldWithNoName (t * testing.T ) {
@@ -207,7 +207,7 @@ func TestNewCollectionReturnsErrorGivenFieldWithNoName(t *testing.T) {
207
207
}
208
208
209
209
_ , err = db .CreateCollection (ctx , desc )
210
- assert .EqualError (t , err , "Collection schema field missing Name" )
210
+ assert .EqualError (t , err , "collection schema field missing Name" )
211
211
}
212
212
213
213
func TestNewCollectionReturnsErrorGivenFieldWithNoKind (t * testing.T ) {
@@ -232,7 +232,7 @@ func TestNewCollectionReturnsErrorGivenFieldWithNoKind(t *testing.T) {
232
232
}
233
233
234
234
_ , err = db .CreateCollection (ctx , desc )
235
- assert .EqualError (t , err , "Collection schema field missing FieldKind" )
235
+ assert .EqualError (t , err , "collection schema field missing FieldKind" )
236
236
}
237
237
238
238
func TestNewCollectionReturnsErrorGivenFieldWithNoType (t * testing.T ) {
@@ -257,7 +257,7 @@ func TestNewCollectionReturnsErrorGivenFieldWithNoType(t *testing.T) {
257
257
}
258
258
259
259
_ , err = db .CreateCollection (ctx , desc )
260
- assert .EqualError (t , err , "Collection schema field missing CRDT type" )
260
+ assert .EqualError (t , err , "collection schema field missing CRDT type" )
261
261
}
262
262
263
263
func TestGetCollectionByName (t * testing.T ) {
@@ -303,5 +303,5 @@ func TestGetCollectionByNameReturnsErrorGivenEmptyString(t *testing.T) {
303
303
assert .NoError (t , err )
304
304
305
305
_ , err = db .GetCollectionByName (ctx , "" )
306
- assert .EqualError (t , err , "Collection name can't be empty" )
306
+ assert .EqualError (t , err , "collection name can't be empty" )
307
307
}
0 commit comments