Skip to content

Commit cd1d3d0

Browse files
committed
clean up typos
1 parent 83e6795 commit cd1d3d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/__tests__/cache.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)