Skip to content

Commit e717ab5

Browse files
author
weiesky.wangc
committed
fix: test passthrough assertion supports zh locale
1 parent cb85eb2 commit e717ab5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/cli.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ describe('arg parsing', () => {
399399
const r = runCli(['--help']);
400400
assert.equal(r.exitCode, 0);
401401
assert.ok(r.stdout.includes('-logger'), 'help should mention -logger');
402-
assert.ok(r.stdout.includes('passed through') || r.stdout.includes('passed\nthrough'), 'help should mention passthrough');
402+
assert.ok(r.stdout.includes('passed through') || r.stdout.includes('passed\nthrough') || r.stdout.includes('透传') || r.stdout.includes('透傳'), 'help should mention passthrough');
403403
// Old -d/-c flags should no longer appear as ccv options
404404
assert.ok(!r.stdout.includes('-d [path]'), 'help should not mention old -d [path]');
405405
assert.ok(!r.stdout.includes('-c [path]'), 'help should not mention old -c [path]');

0 commit comments

Comments
 (0)