Skip to content

Commit b1533a1

Browse files
committed
@W-19772057@ Updated tests for clarity
1 parent fe8a01b commit b1533a1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/commands/code-analyzer/config.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ describe('`code-analyzer config` tests', () => {
5656
const inputValue2 = ['defgh', 'mnopq'];
5757
await ConfigCommand.run(['--rule-selector', inputValue1.join(' '), '--rule-selector', inputValue2.join(' ')]);
5858
expect(executeSpy).toHaveBeenCalled();
59-
expect(receivedActionInput).toHaveProperty('rule-selector', [...inputValue1, ...inputValue2]);
59+
expect(receivedActionInput).toHaveProperty('rule-selector', ['ab,(qq:zz),cde', 'hijlk', 'defgh', 'mnopq']);
6060
});
6161

6262
it('Defaults to value of "all"', async () => {

test/commands/code-analyzer/rules.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('`code-analyzer rules` tests', () => {
6767
const inputValue2 = ['de:(a,b):fgh', 'mnopq'];
6868
await RulesCommand.run(['--rule-selector', inputValue1.join(' '), '--rule-selector', inputValue2.join(' ')]);
6969
expect(executeSpy).toHaveBeenCalled();
70-
expect(receivedActionInput).toHaveProperty('rule-selector', [...inputValue1, ...inputValue2]);
70+
expect(receivedActionInput).toHaveProperty('rule-selector', ['ab,cde', 'hi:jlk', 'de:(a,b):fgh', 'mnopq']);
7171
});
7272

7373
it('Defaults to value of "Recommended"', async () => {

test/commands/code-analyzer/run.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ describe('`code-analyzer run` tests', () => {
157157
});
158158

159159
it('Can be supplied multiple times with multiple space-separated values each', async () => {
160-
const inputValue1 = ['abcde', 'hijlk'];
160+
const inputValue1 = ['a,(bc):de', 'hijlk'];
161161
const inputValue2 = ['defgh', 'mnopq'];
162162
await RunCommand.run(['--rule-selector', inputValue1.join(' '), '--rule-selector', inputValue2.join(' ')]);
163163
expect(executeSpy).toHaveBeenCalled();
164-
expect(receivedActionInput).toHaveProperty('rule-selector', [...inputValue1, ...inputValue2]);
164+
expect(receivedActionInput).toHaveProperty('rule-selector', ['a,(bc):de', 'hijlk', 'defgh' ,'mnopq']);
165165
});
166166

167167
it('Defaults to value of "Recommended"', async () => {

0 commit comments

Comments
 (0)