diff options
| author | Shinigami <[email protected]> | 2025-06-19 13:14:34 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-19 13:14:34 +0200 |
| commit | ca58b0cd0317099588e01e82af706828c6c1d154 (patch) | |
| tree | 5c8b0f59df14f2b188957631e2a9bb6317d5af95 /test | |
| parent | b357ea007fd25de31bb49fa8ab0af2359020b31c (diff) | |
| download | faker-ca58b0cd0317099588e01e82af706828c6c1d154.tar.xz faker-ca58b0cd0317099588e01e82af706828c6c1d154.zip | |
infra: update eslint config (#3530)
Diffstat (limited to 'test')
| -rw-r--r-- | test/modules/finance.spec.ts | 4 | ||||
| -rw-r--r-- | test/modules/image.spec.ts | 2 | ||||
| -rw-r--r-- | test/modules/internet.spec.ts | 9 |
3 files changed, 1 insertions, 14 deletions
diff --git a/test/modules/finance.spec.ts b/test/modules/finance.spec.ts index 82ea482e..69bcc3d1 100644 --- a/test/modules/finance.spec.ts +++ b/test/modules/finance.spec.ts @@ -159,7 +159,6 @@ describe('finance', () => { describe('maskedNumber()', () => { it('should return contain parenthesis, ellipsis and have a length of 4 by default', () => { - // eslint-disable-next-line @typescript-eslint/no-deprecated const actual = faker.finance.maskedNumber(); expect(actual).toMatch(/\(\.{3}\d{4}\)/); @@ -167,7 +166,7 @@ describe('finance', () => { it('should set a default length', () => { const expected = 4; // default account mask length - // eslint-disable-next-line @typescript-eslint/no-deprecated + const mask = faker.finance.maskedNumber({ parens: false, ellipsis: false, @@ -182,7 +181,6 @@ describe('finance', () => { it('should set a specified length', () => { const expected = faker.number.int({ min: 1, max: 20 }); - // eslint-disable-next-line @typescript-eslint/no-deprecated const mask = faker.finance.maskedNumber({ length: expected, parens: false, diff --git a/test/modules/image.spec.ts b/test/modules/image.spec.ts index 0d494cb4..501a7a76 100644 --- a/test/modules/image.spec.ts +++ b/test/modules/image.spec.ts @@ -139,7 +139,6 @@ describe('image', () => { describe('avatarLegacy', () => { it('should return a random avatar url from cloudflare-ipfs', () => { - // eslint-disable-next-line @typescript-eslint/no-deprecated const actual = faker.image.avatarLegacy(); expect(actual).toBeTypeOf('string'); @@ -231,7 +230,6 @@ describe('image', () => { describe('urlPlaceholder', () => { it('should return a random image url from Placeholder', () => { - // eslint-disable-next-line @typescript-eslint/no-deprecated const actual = faker.image.urlPlaceholder(); assertValidUrl(actual); diff --git a/test/modules/internet.spec.ts b/test/modules/internet.spec.ts index 45c51705..e690761b 100644 --- a/test/modules/internet.spec.ts +++ b/test/modules/internet.spec.ts @@ -383,7 +383,6 @@ describe('internet', () => { describe('userName()', () => { it('should return a random userName', () => { - // eslint-disable-next-line @typescript-eslint/no-deprecated const userName = faker.internet.userName(); expect(userName).toBeTruthy(); @@ -392,7 +391,6 @@ describe('internet', () => { }); it('should return a random userName with given firstName', () => { - // eslint-disable-next-line @typescript-eslint/no-deprecated const userName = faker.internet.userName({ firstName: 'Aiden' }); expect(userName).toBeTruthy(); @@ -402,7 +400,6 @@ describe('internet', () => { }); it('should return a random userName with given firstName and lastName', () => { - // eslint-disable-next-line @typescript-eslint/no-deprecated const userName = faker.internet.userName({ firstName: 'Aiden', lastName: 'Harann', @@ -416,7 +413,6 @@ describe('internet', () => { }); it('should strip accents', () => { - // eslint-disable-next-line @typescript-eslint/no-deprecated const userName = faker.internet.userName({ firstName: 'Adèle', lastName: 'Smith', @@ -426,7 +422,6 @@ describe('internet', () => { }); it('should transliterate Cyrillic', () => { - // eslint-disable-next-line @typescript-eslint/no-deprecated const userName = faker.internet.userName({ firstName: 'Амос', lastName: 'Васильев', @@ -435,7 +430,6 @@ describe('internet', () => { }); it('should provide a fallback for Chinese etc', () => { - // eslint-disable-next-line @typescript-eslint/no-deprecated const userName = faker.internet.userName({ firstName: '大羽', lastName: '陳', @@ -444,7 +438,6 @@ describe('internet', () => { }); it('should provide a fallback special unicode characters', () => { - // eslint-disable-next-line @typescript-eslint/no-deprecated const userName = faker.internet.userName({ firstName: '🐼', lastName: '❤️', @@ -847,7 +840,6 @@ describe('internet', () => { describe('color()', () => { it('should return a random hex value', () => { - // eslint-disable-next-line @typescript-eslint/no-deprecated const color = faker.internet.color(); expect(color).toBeTruthy(); @@ -856,7 +848,6 @@ describe('internet', () => { }); it('should return a random hex value with given values', () => { - // eslint-disable-next-line @typescript-eslint/no-deprecated const color = faker.internet.color({ redBase: 100, greenBase: 100, |
