-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(package): Fixed tests and did housekeeping (#544)
- Loading branch information
Showing
21 changed files
with
53 additions
and
89 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
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
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
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 |
---|---|---|
|
@@ -65,31 +65,16 @@ describe('User Controller Tests', () => { | |
it('should get current user', async () => { | ||
const user = await userController.getSelf({ 'x-e2e-user-email': email }) | ||
|
||
expect(user.data.defaultWorkspace.name).toBe('My Workspace') | ||
expect(user.data.email).toBe('[email protected]') | ||
}) | ||
|
||
// Update Current User | ||
it('should update current user', async () => { | ||
const user = await userController.updateSelf( | ||
{ name: 'Jane Doe', email: '[email protected]' }, | ||
{ name: 'Jane Doe' }, | ||
{ 'x-e2e-user-email': email } | ||
) | ||
|
||
expect(user.data.name).toBe('Jane Doe') | ||
expect(user.data.email).toBe('[email protected]') | ||
}) | ||
|
||
// Delete Current User | ||
it('should update current user', async () => { | ||
const deleteUser = await userController.updateSelf( | ||
{ name: 'Jane Doe', email: '[email protected]' }, | ||
{ 'x-e2e-user-email': email } | ||
) | ||
|
||
expect(deleteUser.success).toBe(true) | ||
}) | ||
|
||
// Validate email change OTP | ||
// resend validate email OTP tests | ||
}) |
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/schema/src/auth/auth.types.ts → packages/schema/src/auth/index.types.ts
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
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
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,19 +1,14 @@ | ||
//Export all Schemas and types | ||
|
||
export * from './pagination/pagination' | ||
|
||
export * from './pagination' | ||
export * from './api-key' | ||
|
||
export * from './auth/auth' | ||
|
||
export * from './auth' | ||
export * from './enums' | ||
export * from './environment' | ||
export * from './integration' | ||
export * from './project' | ||
export * from './secret' | ||
export * from './user' | ||
export * from './variable' | ||
|
||
export * from './workspace/workspace' | ||
|
||
export * from './workspace' | ||
export * from './workspace-role' |
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
File renamed without changes.
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
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
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
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
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
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
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
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
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
Oops, something went wrong.