Skip to content

Commit

Permalink
Merge pull request #28 from denbon05/snyk-upgrade-4e4e9243f871ce60fb1…
Browse files Browse the repository at this point in the history
…15b57adf909eb

[Snyk] Upgrade fastify from 4.24.0 to 4.24.2
  • Loading branch information
denbon05 authored Dec 12, 2023
2 parents 194302e + bbb88c3 commit 91b3f15
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 94 deletions.
2 changes: 1 addition & 1 deletion __tests__/lcache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import '../lib/types/fastify';
import { FastifyInstance } from 'fastify';
import { getApp } from './helpers';

describe('cache', () => {
describe('Caching with default options', () => {
let app: FastifyInstance;

beforeEach(async () => {
Expand Down
1 change: 1 addition & 0 deletions lib/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const shouldBeCached = (
statusCode: number
): boolean => {
const { methodsToCache, statusesToCache, excludeRoutes } = opts;
// TODO use routeOptions.url - test compatibility
const { routerPath, method } = request;

return (
Expand Down
Loading

0 comments on commit 91b3f15

Please sign in to comment.