Skip to content

Commit

Permalink
test(init): init tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Benitte committed Jun 28, 2017
1 parent d837fe2 commit 493342b
Show file tree
Hide file tree
Showing 4 changed files with 741 additions and 9 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: node_js
node_js:
- '6'
- '7'
- '8'
script:
- yarn run lint
- yarn run check-fmt
22 changes: 15 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,27 @@
],
"main": "src/index.js",
"author": "plouc <https://github.com/plouc>",
"maintainers": [
{
"name": "Raphaël Benitte"
}
],
"license": "MIT",
"peerDependencies": {
"cucumber": "^2.3.1"
},
"dependencies": {
"chai": "^4.0.2",
"lodash": "^4.17.4"
},
"scripts": {
"fmt": "prettier --print-width 140 --tab-width=4 --single-quote --bracket-spacing --no-semi --color --write \"src/**/*.js\"",
"check-fmt": "prettier --print-width 140 --tab-width=4 --single-quote --bracket-spacing --no-semi --list-different \"src/**/*.js\""
},
"devDependencies": {
"eslint": "^4.1.1",
"prettier": "^1.5.2"
},
"peerDependencies": {
"cucumber": "^2.3.1"
},
"scripts": {
"fmt": "prettier --print-width 140 --tab-width=4 --single-quote --bracket-spacing --no-semi --color --write \"src/**/*.js\"",
"check-fmt": "prettier --print-width 140 --tab-width=4 --single-quote --bracket-spacing --no-semi --list-different \"src/**/*.js\"",
"version": "echo ${npm_package_version}",
"lint": "eslint ."
}
}
2 changes: 1 addition & 1 deletion src/extensions/http_api/definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = ({ baseUrl = '' }) => ({ Given, When, Then }) => {
this.httpApiClient.setHeaders(step.rowsHash())
})

Given(/^I set ([a-zA-Z0-9\-]+) request header to (.*)$/, function(key, value) {
Given(/^I set ([a-zA-Z0-9-]+) request header to (.*)$/, function(key, value) {
this.httpApiClient.setHeader(key, value)
})

Expand Down

0 comments on commit 493342b

Please sign in to comment.