From ccce84dbdf2f24b2e7a0209fa02df953a2c1815a Mon Sep 17 00:00:00 2001 From: mshanemc Date: Mon, 6 Nov 2023 11:01:09 -0600 Subject: [PATCH] test: enum linter stuff --- test/commands/sfdx/config/mixed.nuts.ts | 36 ++++++++++++------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/test/commands/sfdx/config/mixed.nuts.ts b/test/commands/sfdx/config/mixed.nuts.ts index dde8bb83..ce8e040e 100644 --- a/test/commands/sfdx/config/mixed.nuts.ts +++ b/test/commands/sfdx/config/mixed.nuts.ts @@ -48,9 +48,9 @@ describe('e2e scenario tests', async () => { listResult.jsonOutput?.result.some((r) => r.name === 'org-max-query-limit' && r.value === '500') ).to.equal(true); expect(listResult.jsonOutput?.result.filter((r) => r.name === 'org-max-query-limit')).to.have.length(1); - expect(listResult.jsonOutput?.result.filter((r) => r.name === SfdxPropertyKeys.MAX_QUERY_LIMIT)).to.have.length( - 0 - ); + expect( + listResult.jsonOutput?.result.filter((r) => r.name === SfdxPropertyKeys.MAX_QUERY_LIMIT.toString()) + ).to.have.length(0); }); }); @@ -80,9 +80,9 @@ describe('e2e scenario tests', async () => { listResult.jsonOutput?.result.some((r) => r.name === 'org-max-query-limit' && r.value === '499') ).to.equal(true); expect(listResult.jsonOutput?.result.filter((r) => r.name === 'org-max-query-limit')).to.have.length(1); - expect(listResult.jsonOutput?.result.filter((r) => r.name === SfdxPropertyKeys.MAX_QUERY_LIMIT)).to.have.length( - 0 - ); + expect( + listResult.jsonOutput?.result.filter((r) => r.name === SfdxPropertyKeys.MAX_QUERY_LIMIT.toString()) + ).to.have.length(0); }); }); @@ -112,9 +112,9 @@ describe('e2e scenario tests', async () => { listResult.jsonOutput?.result.some((r) => r.name === 'org-max-query-limit' && r.value === '501') ).to.equal(true); expect(listResult.jsonOutput?.result.filter((r) => r.name === 'org-max-query-limit')).to.have.length(1); - expect(listResult.jsonOutput?.result.filter((r) => r.name === SfdxPropertyKeys.MAX_QUERY_LIMIT)).to.have.length( - 0 - ); + expect( + listResult.jsonOutput?.result.filter((r) => r.name === SfdxPropertyKeys.MAX_QUERY_LIMIT.toString()) + ).to.have.length(0); }); }); }); @@ -131,9 +131,9 @@ describe('e2e scenario tests', async () => { const listResult = execCmd('config:list --json', { ensureExitCode: 0 }); expect(listResult.jsonOutput?.result.filter((r) => r.name === 'org-max-query-limit')).to.have.length(0); - expect(listResult.jsonOutput?.result.filter((r) => r.name === SfdxPropertyKeys.MAX_QUERY_LIMIT)).to.have.length( - 0 - ); + expect( + listResult.jsonOutput?.result.filter((r) => r.name === SfdxPropertyKeys.MAX_QUERY_LIMIT.toString()) + ).to.have.length(0); }); it('set the config back using its new name', () => { @@ -144,9 +144,9 @@ describe('e2e scenario tests', async () => { const listResult = execCmd('config:list --json', { ensureExitCode: 0 }); expect(listResult.jsonOutput?.result.filter((r) => r.name === 'org-max-query-limit')).to.have.length(1); - expect(listResult.jsonOutput?.result.filter((r) => r.name === SfdxPropertyKeys.MAX_QUERY_LIMIT)).to.have.length( - 0 - ); + expect( + listResult.jsonOutput?.result.filter((r) => r.name === SfdxPropertyKeys.MAX_QUERY_LIMIT.toString()) + ).to.have.length(0); }); it('should unset the config using its old name', () => { @@ -163,9 +163,9 @@ describe('e2e scenario tests', async () => { const listResult = execCmd('config:list --json', { ensureExitCode: 0 }); expect(listResult.jsonOutput?.result.filter((r) => r.name === 'org-max-query-limit')).to.have.length(0); - expect(listResult.jsonOutput?.result.filter((r) => r.name === SfdxPropertyKeys.MAX_QUERY_LIMIT)).to.have.length( - 0 - ); + expect( + listResult.jsonOutput?.result.filter((r) => r.name === SfdxPropertyKeys.MAX_QUERY_LIMIT.toString()) + ).to.have.length(0); }); }); });