Skip to content

Commit a4a13f3

Browse files
committed
refactor(tests): replace deprecated toMatchTypeOf matcher with toEqualTypeOf
1 parent 555b625 commit a4a13f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/define_config.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ test.group('Define config', () => {
162162
})
163163

164164
const limiter = new LimiterManager(await config.resolver(app))
165-
expectTypeOf(limiter.use).parameters.toMatchTypeOf<
165+
expectTypeOf(limiter.use).parameters.toEqualTypeOf<
166166
[LimiterConsumptionOptions] | ['redis' | 'db' | 'memory', LimiterConsumptionOptions]
167167
>()
168-
expectTypeOf(limiter.use).returns.toMatchTypeOf<Limiter>()
168+
expectTypeOf(limiter.use).returns.toEqualTypeOf<Limiter>()
169169

170170
assert.isNull(
171171
await limiter.use('redis', { duration: '1 min', requests: 5 }).get('ip_localhost')

0 commit comments

Comments
 (0)