-
Notifications
You must be signed in to change notification settings - Fork 34
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
Olasunkanmi Oyinlola
authored and
Olasunkanmi Oyinlola
committed
Feb 16, 2024
1 parent
c20cbc1
commit f900619
Showing
3 changed files
with
5 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ describe('Test singleclient service', () => { | |
const createSingleClientProps = { | ||
email: '[email protected]', | ||
passwordHash: '', | ||
role: 'USER', | ||
}; | ||
validateUserStub.getUser = async (): Promise<any> => { | ||
return singleclientMockData; | ||
|
@@ -60,14 +61,15 @@ describe('Test singleclient service', () => { | |
await singleclientService.createSingleClient(createSingleClientProps); | ||
} catch (error: any) { | ||
expect(error.status).to.eq(400); | ||
expect(error.response.error).to.eq('User with email [email protected] already exists'); | ||
expect(error.response.error).to.eq('User already exists, sign in.'); | ||
} | ||
}); | ||
|
||
it('Should create a SingleClient', async () => { | ||
const createSingleClientProps = { | ||
email: '[email protected]', | ||
passwordHash: '', | ||
role: 'USER', | ||
}; | ||
contextServiceStub.getContext = (): Context => { | ||
return new Context(createSingleClientProps.email, ''); | ||
|
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