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', () => {
173
173
expect ( collection . find . mock . calls . length ) . toBe ( 1 )
174
174
} )
175
175
176
- it ( 'finds by mutiple fields' , async ( ) => {
176
+ it ( 'finds by multiple fields' , async ( ) => {
177
177
const foundDocs = await api . findByFields ( {
178
178
tags : [ 'foo' , 'bar' ] ,
179
179
foo : 'bar'
@@ -224,7 +224,7 @@ describe('createCachingMethods', () => {
224
224
expect ( value ) . toBeUndefined ( )
225
225
} )
226
226
227
- it ( `caches` , async ( ) => {
227
+ it ( `caches by ID ` , async ( ) => {
228
228
await api . findOneById ( docs . one . _id , { ttl : 1 } )
229
229
const value = await cache . get ( cacheKeyById ( docs . one . _id ) )
230
230
expect ( value ) . toEqual ( EJSON . stringify ( docs . one ) )
@@ -243,7 +243,7 @@ describe('createCachingMethods', () => {
243
243
expect ( collection . find . mock . calls . length ) . toBe ( 1 )
244
244
} )
245
245
246
- it ( `caches with ttl` , async ( ) => {
246
+ it ( `caches ID with ttl` , async ( ) => {
247
247
await api . findOneById ( docs . one . _id , { ttl : 1 } )
248
248
await wait ( 1001 )
249
249
You can’t perform that action at this time.
0 commit comments