Skip to content

Commit

Permalink
commander: switch to an updated and customized version
Browse files Browse the repository at this point in the history
to accepts options before arguments
cf maxlath/commander.js@1297ae6 and tj/commander.js#734
  • Loading branch information
maxlath committed Dec 16, 2017
1 parent 9cc329e commit f385a85
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"chalk": "^1.1.3",
"check-node-version": "^2.1.0",
"commander": "git+https://github.com/tj/commander.js.git",
"commander": "git+https://github.com/maxlath/commander.js.git",
"copy2cb": "^1.0.1",
"execa": "^0.4.0",
"lodash": "^4.17.4",
Expand Down
10 changes: 10 additions & 0 deletions test/general.js
Expand Up @@ -11,4 +11,14 @@ describe('general', function () {
done()
})
})

// Addressed by https://github.com/maxlath/commander.js/commit/1297ae6
it('should accepts options before arguments', done => {
execa.shell('./bin/wd claims -c Q90 P625')
.then(res => {
res.stdout.should.equal('48.856577777778 2.3518277777778')
done()
})
.catch(done)
})
})
9 changes: 0 additions & 9 deletions test/wd-claims.js
Expand Up @@ -40,15 +40,6 @@ describe('wd claims', function () {
.catch(done)
})

it('should accepts options before arguments', done => {
execa.shell('./bin/wd claims -c Q90 P625')
.then(res => {
res.stdout.should.equal('48.856577777778 2.3518277777778')
done()
})
.catch(done)
})

it('should filters properties from text', done => {
const coords = '48.856577777778,2.3518277777778'
execa.shell('./bin/wd claims Q90 coord')
Expand Down

0 comments on commit f385a85

Please sign in to comment.