Skip to content

Commit e543772

Browse files
committed
fix: resolve TypeScript variable redeclaration in tests
1 parent 0c935fb commit e543772

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.claude/settings.local.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"WebSearch",
1010
"Bash(gh pr view:*)",
1111
"Bash(gh pr diff:*)",
12-
"Bash(git add:*)"
12+
"Bash(git add:*)",
13+
"Bash(gh run watch:*)",
14+
"Bash(node -e:*)",
15+
"Bash(gh run list:*)"
1316
],
1417
"deny": [],
1518
"ask": []

src/commander-fork/test/test.options.regex.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/**
22
* Module dependencies.
33
*/
4-
const commander = require('../');
54
// var program = require('../')
65
// , should = require('should');
76

87
describe('options.regex', () => {
98
it('should validate with regex', () => {
10-
let program = new commander.Command();
9+
const commanderRegex = require('../');
10+
let program = new commanderRegex.Command();
1111
program
1212
.version('0.0.1')
1313
.option('-s, --size <size>', 'Pizza Size', /^(large|medium|small)$/i, 'medium')

0 commit comments

Comments
 (0)