Skip to content

Commit

Permalink
Merge branch 'develop' into remove-workaround-of-incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Jul 28, 2023
2 parents 46a9856 + 6c3fcc1 commit 991aac5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cli/__tests__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,10 @@ describe('kuai cli', () => {
})

test('pass multiple variadic param', () => {
/* eslint-disable-next-line no-control-regex */
const ANSI_COLORS_CODE_REG = /\u001b\[[0-9;]*m/g
const output = execSync(`npx kuai --config ${CONFIG_PATH} variadic-task --variadicParam 1 2`)
expect(output.toString()).toMatch('{ variadicParam: [ 1, 2 ] }')
expect(output.toString().replace(ANSI_COLORS_CODE_REG, '')).toMatch('{ variadicParam: [ 1, 2 ] }')
})
})
})

0 comments on commit 991aac5

Please sign in to comment.