File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ describe('createCachingMethods', () => {
173173 expect ( collection . find . mock . calls . length ) . toBe ( 1 )
174174 } )
175175
176- it ( 'finds by mutiple fields' , async ( ) => {
176+ it ( 'finds by multiple fields' , async ( ) => {
177177 const foundDocs = await api . findByFields ( {
178178 tags : [ 'foo' , 'bar' ] ,
179179 foo : 'bar'
@@ -224,7 +224,7 @@ describe('createCachingMethods', () => {
224224 expect ( value ) . toBeUndefined ( )
225225 } )
226226
227- it ( `caches` , async ( ) => {
227+ it ( `caches by ID ` , async ( ) => {
228228 await api . findOneById ( docs . one . _id , { ttl : 1 } )
229229 const value = await cache . get ( cacheKeyById ( docs . one . _id ) )
230230 expect ( value ) . toEqual ( EJSON . stringify ( docs . one ) )
@@ -243,7 +243,7 @@ describe('createCachingMethods', () => {
243243 expect ( collection . find . mock . calls . length ) . toBe ( 1 )
244244 } )
245245
246- it ( `caches with ttl` , async ( ) => {
246+ it ( `caches ID with ttl` , async ( ) => {
247247 await api . findOneById ( docs . one . _id , { ttl : 1 } )
248248 await wait ( 1001 )
249249
You can’t perform that action at this time.
0 commit comments