Skip to content

Commit f9a1415

Browse files
authored
chore: ignore some lint warnings in tests (#961)
1 parent ad9bf23 commit f9a1415

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

test/all_functional.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ function modulesList(): { [module: string]: string[] } {
5151
.sort()
5252
.filter(isTestableModule)
5353
.reduce((result, mod) => {
54+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
5455
const methods = Object.keys(faker[mod]).filter(isMethodOf(mod));
5556
if (methods.length) {
5657
result[mod] = methods;

test/fake.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,12 @@ describe('fake', () => {
111111
});
112112

113113
it('should be able to handle special replacement patterns', () => {
114+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
114115
(faker.random as any).special = () => '$&';
115116

116117
expect(faker.fake('{{random.special}}')).toBe('$&');
117118

119+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
118120
delete (faker.random as any).special;
119121
});
120122
});

0 commit comments

Comments
 (0)