Skip to content

Commit

Permalink
chore: Update dependencies (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored and gnapse committed Jan 24, 2020
1 parent e4d61c2 commit c9a8664
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 36 deletions.
11 changes: 0 additions & 11 deletions .prettierrc

This file was deleted.

1 change: 1 addition & 0 deletions .prettierrc.js
@@ -0,0 +1 @@
module.exports = require('kcd-scripts/prettier')
13 changes: 7 additions & 6 deletions .travis.yml
@@ -1,15 +1,16 @@
sudo: false
language: node_js
env:
- FORCE_COLOR=true
cache:
directories:
- ~/.npm
cache: npm
notifications:
email: false
node_js: '8'
node_js:
- 10.14
- 12
- node
install: npm install
script: npm run validate
after_success: kcd-scripts travis-after-success
branches:
only: master
only:
- master
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -14,7 +14,7 @@

</div>

<hr />
---

[![Build Status][build-badge]][build]
[![Code Coverage][coverage-badge]][coverage]
Expand Down
31 changes: 15 additions & 16 deletions package.json
Expand Up @@ -5,7 +5,8 @@
"main": "dist/index.js",
"engines": {
"node": ">=8",
"npm": ">=6"
"npm": ">=6",
"yarn": ">=1"
},
"scripts": {
"format": "kcd-scripts format",
Expand All @@ -23,8 +24,7 @@
},
"files": [
"dist",
"extend-expect.js",
"extend-expect.d.ts"
"extend-expect.js"
],
"keywords": [
"testing",
Expand All @@ -35,28 +35,27 @@
"author": "Ernesto Garcia <gnapse@gmail.com> (http://gnapse.github.io/)",
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.5.1",
"@babel/runtime": "^7.8.3",
"@types/testing-library__jest-dom": "^5.0.0",
"chalk": "^2.4.1",
"css": "^2.2.3",
"chalk": "^3.0.0",
"css": "^2.2.4",
"css.escape": "^1.5.1",
"jest-diff": "^24.0.0",
"jest-matcher-utils": "^24.0.0",
"lodash": "^4.17.11",
"pretty-format": "^24.0.0",
"jest-diff": "^25.1.0",
"jest-matcher-utils": "^25.1.0",
"lodash": "^4.17.15",
"pretty-format": "^25.1.0",
"redent": "^3.0.0"
},
"devDependencies": {
"jest-watch-select-projects": "^0.1.2",
"jsdom": "^15.1.0",
"kcd-scripts": "^1.4.0"
"jest-environment-jsdom-sixteen": "^1.0.0",
"jest-watch-select-projects": "^1.0.0",
"jsdom": "^16.0.1",
"kcd-scripts": "^4.1.0"
},
"eslintConfig": {
"extends": "./node_modules/kcd-scripts/eslint.js",
"rules": {
"babel/no-invalid-this": "off",
"import/prefer-default-export": "off",
"import/no-unassigned-import": "off"
"babel/no-invalid-this": "off"
}
},
"eslintIgnore": [
Expand Down
6 changes: 5 additions & 1 deletion src/__tests__/utils.js
Expand Up @@ -54,7 +54,11 @@ describe('checkHtmlElement', () => {

it('throws for function', () => {
expect(() => {
checkHtmlElement(() => {}, () => {}, {})
checkHtmlElement(
() => {},
() => {},
{},
)
}).toThrow(HtmlElementTypeError)
})

Expand Down
3 changes: 2 additions & 1 deletion src/to-be-invalid.js
Expand Up @@ -39,7 +39,8 @@ export function toBeValid(element) {

const isValid =
!isElementHavingAriaInvalid(element) &&
(FORM_TAGS.includes(getTag(element)) && !isElementInvalid(element))
FORM_TAGS.includes(getTag(element)) &&
!isElementInvalid(element)

return {
pass: isValid,
Expand Down

0 comments on commit c9a8664

Please sign in to comment.