From e29d7460efee38997a2d11f314ba0eeda71da30c Mon Sep 17 00:00:00 2001 From: David-Pena Date: Mon, 30 Sep 2024 02:12:31 -0700 Subject: [PATCH] chore: add failing test to parameterCount for #365 --- src/rules/rrd/parameterCount.test.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/rules/rrd/parameterCount.test.ts b/src/rules/rrd/parameterCount.test.ts index 7e5e113d..b9b737ed 100644 --- a/src/rules/rrd/parameterCount.test.ts +++ b/src/rules/rrd/parameterCount.test.ts @@ -22,6 +22,28 @@ describe('checkParameterCount', () => { expect(result).toStrictEqual([]) }) + it.todo('should not report files where functions do not exceed the recommended limit with destructuring', () => { + const script = { + content: ` + + `, + } as SFCScriptBlock + const filename = 'destructuring-parameters.vue' + const maxParameterCount = DEFAULT_OVERRIDE_CONFIG.maxParameterCount + checkParameterCount(script, filename, maxParameterCount) + const result = reportParameterCount(maxParameterCount) + expect(result.length).toBe(0) + expect(result).toStrictEqual([]) + }) + it('should report files where one function exceeds the recommended limit', () => { const script = { content: `