Skip to content
Snippets Groups Projects
Commit 3a1b137a authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

cleanup

parent 4371435d
No related branches found
No related tags found
2 merge requests!12Feat/donnes tech debut contrat,!10Feat/rechercher point
Pipeline #39785 failed
......@@ -26,15 +26,7 @@ describe('recherchePoint', () => {
})
try {
await findUserPdl(
'azertyuiop',
'apiKey',
'login@user.com',
'John',
'1 street',
'69069',
'69069'
)
await findUserPdl()
expect(true).toBe(false)
} catch (error) {
expect(error).toBe(errors.LOGIN_FAILED)
......@@ -44,15 +36,7 @@ describe('recherchePoint', () => {
it('should throw LOGIN_FAIL if soapRequest fails', async () => {
mockSoapRequest.mockRejectedValueOnce('reject')
try {
await findUserPdl(
'azertyuiop',
'apiKey',
'login@user.com',
'John',
'1 street',
'69069',
'69069'
)
await findUserPdl()
expect(true).toBe(false)
} catch (error) {
expect(error).toBe(errors.LOGIN_FAILED)
......@@ -62,16 +46,6 @@ describe('recherchePoint', () => {
it('should return a correct pdl number', async () => {
mockParseUserPdl.mockResolvedValue('12345')
mockSoapRequest.mockResolvedValue(responseMock)
expect(
await findUserPdl(
'azertyuiop',
'apiKey',
'login@user.com',
'John',
'1 street',
'69069',
'69069'
)
).toBe('12345')
expect(await findUserPdl()).toBe('12345')
})
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment