Skip to content

Commit

Permalink
chore: upgrade the ava ecosystem to ^2
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Jun 20, 2019
1 parent 2f6e385 commit f56c84e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions package.json
Expand Up @@ -36,12 +36,12 @@
"yargs-parser": "^13.0.0"
},
"devDependencies": {
"ava": "^1.1.0",
"ava": "^2.0.0",
"buffer-equal": "^1.0.0",
"codecov": "^3.0.0",
"eslint": "^5.5.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-ava": "^6.0.0",
"eslint-plugin-ava": "^7.0.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-node": "^9.0.1",
"eslint-plugin-promise": "^4.0.1",
Expand Down Expand Up @@ -73,6 +73,10 @@
"ava": {
"babel": false,
"compileEnhancements": false,
"helpers": [
"test/config.json",
"test/fixtures/**/*"
],
"timeout": "60s"
},
"eslintConfig": {
Expand All @@ -92,6 +96,8 @@
"promise"
],
"rules": {
"ava/no-import-test-files": 0,
"ava/no-ignored-test-files": 0,
"indent": [
"error",
2,
Expand Down
6 changes: 3 additions & 3 deletions test/cli.js
Expand Up @@ -34,17 +34,17 @@ test('CLI argument test: --osx-sign=true', t => {

test('CLI argument test: --osx-notarize=true', t => {
const args = cli.parseArgs(['--osx-notarize=true'])
t.falsy(args.osxNotarize, null)
t.falsy(args.osxNotarize, '')
})

test('CLI argument test: --osx-notarize is array', t => {
const args = cli.parseArgs(['--osx-notarize=1', '--osx-notarize=2'])
t.falsy(args.osxNotarize, null)
t.falsy(args.osxNotarize, '')
})

test('CLI argument test: --osx-notarize without --osx-sign', t => {
const args = cli.parseArgs(['--osx-notarize.appleId=myid'])
t.falsy(args.osxNotarize, null)
t.falsy(args.osxNotarize, '')
})

test('CLI argument test: --tmpdir=false', t => {
Expand Down

0 comments on commit f56c84e

Please sign in to comment.