mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00
ESLint: Enable @typescript-eslint/naming-convention rule
This check enforces consistent variable naming. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
c3129d40e0
commit
3626ce9dff
4 changed files with 32 additions and 6 deletions
|
@ -69,7 +69,7 @@ describe('AuthService', () => {
|
|||
.then((result) => expect(result).toBeTruthy());
|
||||
});
|
||||
it('fails, if secret is too short', async () => {
|
||||
const secret = service.BufferToBase64Url(await service.randomString(54));
|
||||
const secret = service.bufferToBase64Url(await service.randomString(54));
|
||||
const hash = await service.hashPassword(secret);
|
||||
service
|
||||
.checkPassword(secret, hash)
|
||||
|
@ -277,10 +277,10 @@ describe('AuthService', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('BufferToBase64Url', () => {
|
||||
describe('bufferToBase64Url', () => {
|
||||
it('works', () => {
|
||||
expect(
|
||||
service.BufferToBase64Url(
|
||||
service.bufferToBase64Url(
|
||||
Buffer.from('testsentence is a test sentence'),
|
||||
),
|
||||
).toEqual('dGVzdHNlbnRlbmNlIGlzIGEgdGVzdCBzZW50ZW5jZQ');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue