-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: 560/565 of all tests passing
- Loading branch information
Showing
4 changed files
with
50 additions
and
28 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 |
---|---|---|
|
@@ -702,6 +702,7 @@ describe('::createUser', () => { | |
{ | ||
email: '[email protected]', | ||
salt: '0'.repeat(saltLength), | ||
// * Not hexadecimal | ||
key: 'x'.repeat(keyLength) | ||
}, | ||
ErrorMessage.InvalidStringLength('key', keyLength, null, 'hexadecimal') | ||
|
@@ -1417,9 +1418,20 @@ describe('::updateUser', () => { | |
ErrorMessage.InvalidStringLength('key', keyLength, null, 'hexadecimal') | ||
], | ||
[ | ||
// * Not hexadecimal | ||
{ key: 'x'.repeat(keyLength) }, | ||
ErrorMessage.InvalidStringLength('key', keyLength, null, 'hexadecimal') | ||
], | ||
// * Key must always be paired with salt and vice-versa | ||
[ | ||
{ key: 'a'.repeat(keyLength) }, | ||
ErrorMessage.InvalidStringLength('salt', saltLength, null, 'hexadecimal') | ||
], | ||
// * Key must always be paired with salt and vice-versa | ||
[ | ||
{ salt: 'a'.repeat(saltLength) }, | ||
ErrorMessage.InvalidStringLength('key', keyLength, null, 'hexadecimal') | ||
], | ||
[{ banned: 'true' as unknown as boolean }, ErrorMessage.UnknownField('banned')], | ||
[{ banned: null as unknown as boolean }, ErrorMessage.UnknownField('banned')], | ||
[{ data: 1 } as PatchUser, ErrorMessage.UnknownField('data')], | ||
|