aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2022-05-17 08:43:31 +0200
committerGitHub <[email protected]>2022-05-17 06:43:31 +0000
commitf9a1415619af2a718290260d65323134bc13eaf3 (patch)
tree5cdfc5d0d6d77953a5f3b659909a43f3ca285f5f
parentad9bf23d2e0f9849590fd2897654ac42b26c4d41 (diff)
downloadfaker-f9a1415619af2a718290260d65323134bc13eaf3.tar.xz
faker-f9a1415619af2a718290260d65323134bc13eaf3.zip
chore: ignore some lint warnings in tests (#961)
-rw-r--r--test/all_functional.spec.ts1
-rw-r--r--test/fake.spec.ts2
2 files changed, 3 insertions, 0 deletions
diff --git a/test/all_functional.spec.ts b/test/all_functional.spec.ts
index 756749af..b391b61e 100644
--- a/test/all_functional.spec.ts
+++ b/test/all_functional.spec.ts
@@ -51,6 +51,7 @@ function modulesList(): { [module: string]: string[] } {
.sort()
.filter(isTestableModule)
.reduce((result, mod) => {
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
const methods = Object.keys(faker[mod]).filter(isMethodOf(mod));
if (methods.length) {
result[mod] = methods;
diff --git a/test/fake.spec.ts b/test/fake.spec.ts
index c9ce3b31..82d8c17a 100644
--- a/test/fake.spec.ts
+++ b/test/fake.spec.ts
@@ -111,10 +111,12 @@ describe('fake', () => {
});
it('should be able to handle special replacement patterns', () => {
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
(faker.random as any).special = () => '$&';
expect(faker.fake('{{random.special}}')).toBe('$&');
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
delete (faker.random as any).special;
});
});