Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: flakey5 <73616808+flakey5@users.noreply.github.com>
  • Loading branch information
flakey5 committed Nov 7, 2024
1 parent 2dbc3c5 commit 4c67435
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/middleware/notFoundMiddleware.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Context } from '../context';
import type { Context } from '../context';
import responses from '../responses';
import type { Request } from '../routes/request';
import type { Middleware } from './middleware';
Expand Down
2 changes: 1 addition & 1 deletion src/middleware/optionsMiddleware.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CACHE_HEADERS } from '../constants/cache';
import { Context } from '../context';
import type { Context } from '../context';
import type { Middleware } from './middleware';

/**
Expand Down
6 changes: 5 additions & 1 deletion tests/unit/middleware/substituteMiddleware.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,9 @@ it('correctly substitutes url `/dist/latest` to `/dist/v1.0.0`', async () => {
const middleware = new SubtitutionMiddleware(router, 'latest', 'v1.0.0');

// @ts-expect-error full request & ctx not needed
middleware.handle(originalRequest, undefined);
middleware.handle(originalRequest, {
sentry: {
addBreadcrumb: () => {},
},
});
});

0 comments on commit 4c67435

Please sign in to comment.