Skip to content

Commit

Permalink
chore: fix backend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellmueller committed Dec 2, 2024
1 parent 678ccdc commit cb81d24
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion backend/e2e/app.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import request from "supertest";
import { Test } from "@nestjs/testing";
import type { INestApplication } from "@nestjs/common";
import { INestApplication } from "@nestjs/common";
import { AppModule } from "../src/app.module";

describe("AppController (e2e)", () => {
Expand Down
2 changes: 1 addition & 1 deletion backend/src/app.controller.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { TestingModule } from "@nestjs/testing";
import { TestingModule } from "@nestjs/testing";
import { Test } from "@nestjs/testing";
import { AppController } from "./app.controller";
import { AppService } from "./app.service";
Expand Down
2 changes: 1 addition & 1 deletion backend/src/common/logger.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { WinstonModule, utilities } from "nest-winston";
import * as winston from "winston";
import type { LoggerService } from "@nestjs/common";
import { LoggerService } from "@nestjs/common";

const globalLoggerFormat: winston.Logform.Format = winston.format.timestamp({
format: "YYYY-MM-DD hh:mm:ss.SSS",
Expand Down
4 changes: 2 additions & 2 deletions backend/src/middleware/req.res.logger.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Request, Response, NextFunction } from "express";
import type { NestMiddleware } from "@nestjs/common";
import { Request, Response, NextFunction } from "express";
import { NestMiddleware } from "@nestjs/common";
import { Injectable, Logger } from "@nestjs/common";

@Injectable()
Expand Down
10 changes: 5 additions & 5 deletions backend/src/users/users.controller.spec.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { TestingModule } from "@nestjs/testing";
import { TestingModule } from "@nestjs/testing";
import { Test } from "@nestjs/testing";
import { UsersController } from "./users.controller";
import { UsersService } from "./users.service";
import request from "supertest";
import type { INestApplication } from "@nestjs/common";
import { INestApplication } from "@nestjs/common";
import { HttpException } from "@nestjs/common";
import type { CreateUserDto } from "./dto/create-user.dto";
import type { UpdateUserDto } from "./dto/update-user.dto";
import type { UserDto } from "./dto/user.dto";
import { CreateUserDto } from "./dto/create-user.dto";
import { UpdateUserDto } from "./dto/update-user.dto";
import { UserDto } from "./dto/user.dto";
import { PrismaService } from "nestjs-prisma";

describe("UserController", () => {
Expand Down
8 changes: 4 additions & 4 deletions backend/src/users/users.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import {
HttpException,
} from "@nestjs/common";
import { ApiTags } from "@nestjs/swagger";
import type { UsersService } from "./users.service";
import type { CreateUserDto } from "./dto/create-user.dto";
import type { UpdateUserDto } from "./dto/update-user.dto";
import type { UserDto } from "./dto/user.dto";
import { UsersService } from "./users.service";
import { CreateUserDto } from "./dto/create-user.dto";
import { UpdateUserDto } from "./dto/update-user.dto";
import { UserDto } from "./dto/user.dto";

@ApiTags("users")
@Controller({ path: "users", version: "1" })
Expand Down

0 comments on commit cb81d24

Please sign in to comment.