-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(api): move PasswordResetDemandNotFoundError to src
Co-authored-by: Emmanuelle Bonnemay <emmanuelle.bonnemay@pix.fr>
- Loading branch information
1 parent
d05a6bc
commit 0170ada
Showing
14 changed files
with
68 additions
and
56 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
2 changes: 1 addition & 1 deletion
2
...dentity-access-management/infrastructure/repositories/reset-password-demand.repository.js
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
3 changes: 2 additions & 1 deletion
3
...s/identity-access-management/integration/application/password/password.controller.test.js
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
3 changes: 2 additions & 1 deletion
3
...-management/integration/domain/usecases/get-user-by-reset-password-demand.usecase.test.js
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
2 changes: 1 addition & 1 deletion
2
...nagement/integration/infrastructure/repositories/reset-password-demand.repository.test.js
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
20 changes: 20 additions & 0 deletions
20
api/tests/identity-access-management/unit/domain/errors.test.js
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { PasswordResetDemandNotFoundError } from '../../../../src/identity-access-management/domain/errors.js'; | ||
import { expect } from '../../../test-helper.js'; | ||
|
||
describe('Unit | Identity Access Management | Domain | Errors', function () { | ||
describe('#PasswordResetDemandNotFoundError', function () { | ||
it('has a getErrorMessage method', function () { | ||
// given | ||
const expectedErrorMessage = { | ||
data: { | ||
temporaryKey: ['Cette demande de réinitialisation n’existe pas.'], | ||
}, | ||
}; | ||
|
||
// then | ||
const error = new PasswordResetDemandNotFoundError(); | ||
expect(error.getErrorMessage).to.be.a('function'); | ||
expect(error.getErrorMessage()).to.eql(expectedErrorMessage); | ||
}); | ||
}); | ||
}); |
3 changes: 2 additions & 1 deletion
3
...-access-management/unit/domain/usecases/get-user-by-reset-password-demand.usecase.test.js
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
2 changes: 1 addition & 1 deletion
2
...ests/identity-access-management/unit/domain/usecases/update-user-password.usecase.test.js
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