aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/modules/helpers.spec.ts2
-rw-r--r--test/scripts/apidoc/module.example.ts2
-rw-r--r--test/scripts/apidoc/verify-jsdoc-tags.spec.ts8
3 files changed, 8 insertions, 4 deletions
diff --git a/test/modules/helpers.spec.ts b/test/modules/helpers.spec.ts
index e683d1d8..3f850086 100644
--- a/test/modules/helpers.spec.ts
+++ b/test/modules/helpers.spec.ts
@@ -95,6 +95,7 @@ describe('helpers', () => {
enum MixedFoo {
Foo = 0,
Bar = 1,
+ // eslint-disable-next-line @typescript-eslint/no-mixed-enums
FooName = 'Foo',
BarName = 'Bar',
}
@@ -256,6 +257,7 @@ describe('helpers', () => {
enum FooMixedEnum {
Foo = 0,
Bar = 1,
+ // eslint-disable-next-line @typescript-eslint/no-mixed-enums
StrFoo = 'FOO',
StrBar = 'BAR',
}
diff --git a/test/scripts/apidoc/module.example.ts b/test/scripts/apidoc/module.example.ts
index b3f43a86..0e5d9d89 100644
--- a/test/scripts/apidoc/module.example.ts
+++ b/test/scripts/apidoc/module.example.ts
@@ -1,3 +1,5 @@
+/* eslint-disable @typescript-eslint/no-extraneous-class -- required for tests */
+
/**
* A simple module without anything special.
*/
diff --git a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts
index 64cbcdb4..a924c268 100644
--- a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts
+++ b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts
@@ -47,7 +47,7 @@ describe('verify JSDoc tags', () => {
}
const allowedReferences = new Set(
- Object.values(modules).reduce((acc, [module, methods]) => {
+ Object.values(modules).reduce<string[]>((acc, [module, methods]) => {
const moduleFieldName = extractModuleFieldName(module);
return [
...acc,
@@ -55,10 +55,10 @@ describe('verify JSDoc tags', () => {
(methodName) => `faker.${moduleFieldName}.${methodName}`
),
];
- }, [] as string[])
+ }, [])
);
const allowedLinks = new Set(
- Object.values(modules).reduce((acc, [module, methods]) => {
+ Object.values(modules).reduce<string[]>((acc, [module, methods]) => {
const moduleFieldName = extractModuleFieldName(module);
return [
...acc,
@@ -68,7 +68,7 @@ describe('verify JSDoc tags', () => {
`/api/${moduleFieldName}.html#${methodName.toLowerCase()}`
),
];
- }, [] as string[])
+ }, [])
);
function assertDescription(description: string, isHtml: boolean): void {