mirror of
https://github.com/logto-io/logto.git
synced 2025-02-03 21:48:55 -05:00
fix(test): remove legacy test
remove legacy test
This commit is contained in:
parent
a3e55222fc
commit
457b153800
1 changed files with 0 additions and 21 deletions
|
@ -94,27 +94,6 @@ devFeatureTest.describe('password verifications', () => {
|
||||||
[username, 'userInfo'],
|
[username, 'userInfo'],
|
||||||
];
|
];
|
||||||
|
|
||||||
it('should throw error if password is not provided', async () => {
|
|
||||||
const { primaryEmail } = generateNewUserProfile({
|
|
||||||
primaryEmail: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
const client = await initExperienceClient();
|
|
||||||
|
|
||||||
await expectRejects(
|
|
||||||
client.createNewPasswordIdentityVerification({
|
|
||||||
identifier: {
|
|
||||||
type: SignInIdentifier.Email,
|
|
||||||
value: primaryEmail,
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
{
|
|
||||||
code: 'user.password_required_in_profile',
|
|
||||||
status: 422,
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
it.each(invalidPasswords)('should reject invalid password %p', async (password) => {
|
it.each(invalidPasswords)('should reject invalid password %p', async (password) => {
|
||||||
const client = await initExperienceClient();
|
const client = await initExperienceClient();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue