Skip to content

Commit

Permalink
chore: forgoing dropping Node 6 until yargs@14 (#1308)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Mar 5, 2019
1 parent 14920d1 commit 03a9523
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
@@ -1,6 +1,7 @@
language: node_js

node_js:
- "6"
- "8"
- "10"
# - "11" TODO: add 11 in April when 12 goes live.
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Expand Up @@ -36,7 +36,8 @@ All notable changes to this project will be documented in this file. See [standa

### Chores

* drop Node 6 from testing matrix ([#1287](https://github.com/yargs/yargs/issues/1287)) ([ef16792](https://github.com/yargs/yargs/commit/ef16792))
* ~drop Node 6 from testing matrix ([#1287](https://github.com/yargs/yargs/issues/1287)) ([ef16792](https://github.com/yargs/yargs/commit/ef16792))~
* _opting to not drop Node 6 support until April, [see](https://github.com/nodejs/Release)._
* update dependencies ([#1284](https://github.com/yargs/yargs/issues/1284)) ([f25de4f](https://github.com/yargs/yargs/commit/f25de4f))


Expand Down
3 changes: 2 additions & 1 deletion test/middleware.js
Expand Up @@ -261,9 +261,10 @@ describe('middleware', () => {
it('throws an error if async function provided', function () {
expect(() => {
yargs(['mw'])
.middleware([async function (argv) {
.middleware([function (argv) {
argv.mw = 'mw'
argv.other = true
return Promise.resolve(argv)
}], true)
.command(
'mw',
Expand Down

0 comments on commit 03a9523

Please sign in to comment.