Skip to content

Commit

Permalink
Fix Travis succeeding on test failures (#11)
Browse files Browse the repository at this point in the history
* Fix Travis succeeding on test failures

* Add missing field to test
  • Loading branch information
exogen committed Jul 6, 2019
1 parent 9e82dec commit 60c2151
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ node_js:
- "12"

script:
- yarn test:ci | coveralls
- yarn test:ci
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
],
"main": "index.js",
"scripts": {
"coveralls": "coveralls < ./coverage/lcov.info",
"lint": "eslint index.js test",
"start": "cd demo && yarn start",
"test": "yarn run lint && yarn test:coverage",
"test:ci": "yarn test:coverage --verbose --coverageReporters=text-lcov",
"test:ci": "yarn test:coverage --verbose && yarn coveralls",
"test:coverage": "jest --coverage",
"test:only": "jest"
},
Expand Down
1 change: 1 addition & 0 deletions test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function defineTests(packageName) {
);
expect(response.harEntry).toEqual({
_timestamps: expect.any(Object),
_resourceType: "fetch",
startedDateTime: expect.stringMatching(
/^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d\.\d+Z$/
),
Expand Down

0 comments on commit 60c2151

Please sign in to comment.