-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6de41a
commit 76672cc
Showing
1 changed file
with
0 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 () => { | ||
|