Skip to content

Commit

Permalink
test: enum linter stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Nov 6, 2023
1 parent 4f48aa2 commit ccce84d
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions test/commands/sfdx/config/mixed.nuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

Expand Down Expand Up @@ -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);
});
});

Expand Down Expand Up @@ -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);
});
});
});
Expand All @@ -131,9 +131,9 @@ describe('e2e scenario tests', async () => {
const listResult = execCmd<ConfigResponses>('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', () => {
Expand All @@ -144,9 +144,9 @@ describe('e2e scenario tests', async () => {
const listResult = execCmd<ConfigResponses>('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', () => {
Expand All @@ -163,9 +163,9 @@ describe('e2e scenario tests', async () => {
const listResult = execCmd<ConfigResponses>('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);
});
});
});

0 comments on commit ccce84d

Please sign in to comment.