mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-10-01 21:24:51 +02:00
34 - formatting errors
This commit is contained in:
@@ -5,9 +5,12 @@ import { handle } from "./hooks.server.js";
|
||||
// Mock the Date.now function for rate limiting tests
|
||||
const mockDateNow = vi.fn();
|
||||
const OriginalDate = Date;
|
||||
vi.stubGlobal("Date", class extends OriginalDate {
|
||||
static now = mockDateNow;
|
||||
});
|
||||
vi.stubGlobal(
|
||||
"Date",
|
||||
class extends OriginalDate {
|
||||
static now = mockDateNow;
|
||||
}
|
||||
);
|
||||
|
||||
describe("hooks.server", () => {
|
||||
beforeEach(() => {
|
||||
|
||||
@@ -163,7 +163,6 @@ export const handle: Handle = async ({ event, resolve }) => {
|
||||
const responseTime = Date.now() - start;
|
||||
|
||||
requestLogger.logRequest(event.request, responseTime, response.status);
|
||||
|
||||
|
||||
return response;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user