Skip to content

Commit

Permalink
test: fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Feb 1, 2025
1 parent 0940623 commit f444ee8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/bentocache/tests/bento_cache_options.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ test.group('Bento Cache Options', () => {

assert.deepEqual(options.ttl, string.milliseconds.parse('30m'))
assert.deepEqual(options.prefix, 'bentocache')
assert.deepEqual(options.suppressL2Errors, true)
})

test('override defaults', ({ assert }) => {
const options = new BentoCacheOptions({ ttl: '10m', prefix: 'foo' })

assert.deepEqual(options.ttl, '10m')
assert.deepEqual(options.prefix, 'foo')
assert.deepEqual(options.suppressL2Errors, true)
})

test('override with cloneWith', ({ assert }) => {
Expand All @@ -26,6 +24,5 @@ test.group('Bento Cache Options', () => {
assert.deepEqual(options.ttl, '20m')
assert.deepEqual(options.prefix, 'foo')
assert.deepEqual(options.grace, false)
assert.deepEqual(options.suppressL2Errors, true)
})
})

0 comments on commit f444ee8

Please sign in to comment.