Skip to content

Commit

Permalink
chore(deps): update dependency ava to v2 (#19)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency ava to v2

* test: fix test
  • Loading branch information
renovate[bot] authored and bukinoshita committed Dec 16, 2019
1 parent f42a5bc commit e6b8a9e
Show file tree
Hide file tree
Showing 7 changed files with 791 additions and 1,840 deletions.
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const { createPoll } = require('./lib/api')
const generate = require('./lib/generate')

Expand Down
2 changes: 0 additions & 2 deletions lib/api.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const axios = require('axios')
const { BASE_URL } = require('./utils')

Expand Down
2 changes: 0 additions & 2 deletions lib/generate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const { BASE_URL } = require('./utils')

module.exports = (options, id) => {
Expand Down
2 changes: 0 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

const BASE_URL = 'https://api.gh-polls.com'

module.exports = { BASE_URL }
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.2",
"description": "Create a poll with gh-polls",
"main": "index.js",
"repository": "https://github.com/bukinoshita/gh-polls.git",
"repository": "bukinoshita/gh-polls",
"author": "Bu Kinoshita <bukinoshita@gmail.com>",
"license": "MIT",
"keywords": [
Expand All @@ -26,7 +26,7 @@
"axios": "^0.19.0"
},
"devDependencies": {
"ava": "0.25.0",
"ava": "2.4.0",
"eslint-config-prettier": "6.7.0",
"xo": "0.25.3"
},
Expand Down
4 changes: 1 addition & 3 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

import test from 'ava'
import m from '.'

Expand All @@ -14,7 +12,7 @@ test('create poll', async t => {
})

test('error', async t => {
const error = await t.throws(m())
const error = await t.throwsAsync(m())

t.is(error.message, '`Options` must be an `Array`.')
})
Loading

0 comments on commit e6b8a9e

Please sign in to comment.