diff options
| author | ST-DDT <[email protected]> | 2023-12-25 01:51:33 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-25 01:51:33 +0100 |
| commit | 24482a30042eec5b553b30d60985e89fd69a8660 (patch) | |
| tree | fd4c2b351d03d0f06998e364352f461743f63866 /test/scripts | |
| parent | c209030a660422a17f73d6f0b307af14507bd56d (diff) | |
| download | faker-24482a30042eec5b553b30d60985e89fd69a8660.tar.xz faker-24482a30042eec5b553b30d60985e89fd69a8660.zip | |
feat(helpers): add support for complex intermediate types (#2550)
Diffstat (limited to 'test/scripts')
| -rw-r--r-- | test/scripts/apidoc/verify-jsdoc-tags.spec.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts index 76865c16..89afc225 100644 --- a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts +++ b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts @@ -236,7 +236,10 @@ describe('verify JSDoc tags', () => { false ); if (paramDefault) { - if (/^{.*}$/.test(paramDefault)) { + if ( + /^{.*}$/.test(paramDefault) || + paramDefault.includes('\n') + ) { expect(commentDefault).toBeUndefined(); } else { expect( |
