Skip to content

Commit

Permalink
Prettier changes
Browse files Browse the repository at this point in the history
  • Loading branch information
noahk004 committed Jan 19, 2025
1 parent 9264ff8 commit 665e9a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions apps/api/__tests__/routes/publicRouter.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import request from "supertest";
import { app } from "../../src/app";
import { fetchComponentWithRelations } from "../../src/lib/data";
import { fetchComponentWithRelations } from "../../src/lib/data";

jest.mock("../../src/lib/data"); // Mock the fetch function

const mockFetchComponentWithRelations = fetchComponentWithRelations as jest.Mock;
const mockFetchComponentWithRelations =
fetchComponentWithRelations as jest.Mock;

describe("GET /api/components/:id", () => {
afterEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { app } from "./app"
import { app } from "./app";

const PORT = process.env.PORT || 5000;

Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/routes/authRouter.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Router, Request, Response } from "express";
import bcrypt from "bcrypt";
import jwt from "jsonwebtoken";
import prisma from "../lib/prisma"
import prisma from "../lib/prisma";

const authRouter = Router();

Expand Down

0 comments on commit 665e9a1

Please sign in to comment.