Skip to content

Commit

Permalink
#9 - Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders164a committed Oct 3, 2023
1 parent a6de41a commit 76672cc
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/modules/item/folder/__test__/add.test.ts
Original file line number Diff line number Diff line change
@@ -1,31 +1,22 @@
import { User } from '@prisma/client';
import UserService from '../../../auth/user.service';
import AuthService from '../../../auth/auth.service';
import FolderService from '../folder.service';

describe('POST /api/folder', () => {
let userService: UserService;
let authService: AuthService;
let folderService: FolderService;

let user: User;
let otherUser: User;

beforeAll(async () => {
authService = new AuthService();
userService = new UserService();
folderService = new FolderService();

user = await userService.createUser({
name: 'Joe Biden the 1st',
email: '[email protected]',
password: '1234',
});
otherUser = await userService.createUser({
name: 'Joe Biden the 2nd',
email: '[email protected]',
password: '4321',
});
});

it('should return status 200 and folder', async () => {
Expand Down

0 comments on commit 76672cc

Please sign in to comment.