diff options
| author | ST-DDT <[email protected]> | 2023-09-24 01:24:37 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-09-23 23:24:37 +0000 |
| commit | 24415ee993a9c6e3c8f0dffa544f492dcb29463c (patch) | |
| tree | bce36d80dbd989b8cd9fbbf47be411d14fd167d4 /test/scripts | |
| parent | 74eecccd3af702d8a1d8072f94032ccb54293cb1 (diff) | |
| download | faker-24415ee993a9c6e3c8f0dffa544f492dcb29463c.tar.xz faker-24415ee993a9c6e3c8f0dffa544f492dcb29463c.zip | |
infra: lint all existing jsdocs (#2408)
Diffstat (limited to 'test/scripts')
| -rw-r--r-- | test/scripts/apidoc/__snapshots__/signature.spec.ts.snap | 24 | ||||
| -rw-r--r-- | test/scripts/apidoc/signature.example.ts | 1 | ||||
| -rw-r--r-- | test/scripts/apidoc/utils.ts | 3 |
3 files changed, 16 insertions, 12 deletions
diff --git a/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap b/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap index 2c0020a4..79ceecf5 100644 --- a/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap +++ b/test/scripts/apidoc/__snapshots__/signature.spec.ts.snap @@ -43,7 +43,7 @@ exports[`signature > analyzeSignature() > complexArrayParameter 1`] = ` "returns": "T", "seeAlsos": [], "since": "", - "sourcePath": "test/scripts/apidoc/signature.example.ts#L357", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L358", "throws": undefined, } `; @@ -198,7 +198,7 @@ exports[`signature > analyzeSignature() > methodWithDeprecated 1`] = ` "test.apidoc.methodWithExample()", ], "since": "", - "sourcePath": "test/scripts/apidoc/signature.example.ts#L277", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L278", "throws": undefined, } `; @@ -250,7 +250,7 @@ exports[`signature > analyzeSignature() > methodWithDeprecatedOption 1`] = ` "returns": "number", "seeAlsos": [], "since": "", - "sourcePath": "test/scripts/apidoc/signature.example.ts#L298", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L299", "throws": undefined, } `; @@ -268,7 +268,7 @@ exports[`signature > analyzeSignature() > methodWithExample 1`] = ` "returns": "number", "seeAlsos": [], "since": "", - "sourcePath": "test/scripts/apidoc/signature.example.ts#L266", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L267", "throws": undefined, } `; @@ -288,7 +288,7 @@ exports[`signature > analyzeSignature() > methodWithMultipleSeeMarkers 1`] = ` "test.apidoc.methodWithDeprecated()", ], "since": "", - "sourcePath": "test/scripts/apidoc/signature.example.ts#L325", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L326", "throws": undefined, } `; @@ -308,7 +308,7 @@ exports[`signature > analyzeSignature() > methodWithMultipleSeeMarkersAndBacktic "test.apidoc.methodWithDeprecated() with parameter <code>bar</code> and <code>baz</code>.", ], "since": "", - "sourcePath": "test/scripts/apidoc/signature.example.ts#L335", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L336", "throws": undefined, } `; @@ -325,7 +325,7 @@ exports[`signature > analyzeSignature() > methodWithSinceMarker 1`] = ` "returns": "number", "seeAlsos": [], "since": "1.0.0", - "sourcePath": "test/scripts/apidoc/signature.example.ts#L344", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L345", "throws": undefined, } `; @@ -342,7 +342,7 @@ exports[`signature > analyzeSignature() > methodWithThrows 1`] = ` "returns": "number", "seeAlsos": [], "since": "", - "sourcePath": "test/scripts/apidoc/signature.example.ts#L286", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L287", "throws": "a Faker error", } `; @@ -491,7 +491,7 @@ It also has a more complex description.</p> "returns": "number", "seeAlsos": [], "since": "", - "sourcePath": "test/scripts/apidoc/signature.example.ts#L216", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L217", "throws": undefined, } `; @@ -530,7 +530,7 @@ exports[`signature > analyzeSignature() > optionsInterfaceParamMethodWithDefault "returns": "number", "seeAlsos": [], "since": "", - "sourcePath": "test/scripts/apidoc/signature.example.ts#L252", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L253", "throws": undefined, } `; @@ -596,7 +596,7 @@ exports[`signature > analyzeSignature() > optionsParamMethod 1`] = ` "returns": "number", "seeAlsos": [], "since": "", - "sourcePath": "test/scripts/apidoc/signature.example.ts#L186", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L187", "throws": undefined, } `; @@ -635,7 +635,7 @@ exports[`signature > analyzeSignature() > optionsTypeParamMethodWithDefaults 1`] "returns": "number", "seeAlsos": [], "since": "", - "sourcePath": "test/scripts/apidoc/signature.example.ts#L234", + "sourcePath": "test/scripts/apidoc/signature.example.ts#L235", "throws": undefined, } `; diff --git a/test/scripts/apidoc/signature.example.ts b/test/scripts/apidoc/signature.example.ts index 5d557a3f..a4849e30 100644 --- a/test/scripts/apidoc/signature.example.ts +++ b/test/scripts/apidoc/signature.example.ts @@ -182,6 +182,7 @@ export class SignatureTest { * @param options.b The string parameter. * @param options.c The boolean parameter. * @param options.d The method parameter. + * @param options.e The LiteralUnion parameter. */ optionsParamMethod(options: { a: number; diff --git a/test/scripts/apidoc/utils.ts b/test/scripts/apidoc/utils.ts index 095592c5..ade31120 100644 --- a/test/scripts/apidoc/utils.ts +++ b/test/scripts/apidoc/utils.ts @@ -12,6 +12,9 @@ import { mapByName } from '../../../scripts/apidoc/utils'; /** * Returns a record with the (Module-Name -> (Method-Name -> Method-Signature)) for the project. + * + * @param options The TypeDoc options. + * @param includeTestModules Whether to include the test modules. */ export function loadProjectModules( options?: Partial<TypeDocOptions>, |
