Install husky (#373)

* Add prepush hook and install husky
This commit is contained in:
Josh Johnson 2018-03-27 10:48:01 +01:00 committed by GitHub
parent 38cf04b0d8
commit 82c389bc56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 1148 deletions

View file

@ -18,6 +18,7 @@
"js:build": "concurrently --prefix-colors yellow,green \"webpack --env.minimize --config webpack.config.prod.js\" \"webpack --config webpack.config.prod.js\"",
"version": "node version.js --current $npm_package_version --new $npm_config_newVersion",
"postversion": "npm run js:build",
"prepush": "npm run lint && npm run test",
"dev": "dev"
},
"repository": {
@ -49,6 +50,7 @@
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-react": "^7.2.1",
"husky": "^0.14.3",
"jasmine-core": "2.4.1",
"jsdom": "^11.5.1",
"mocha": "^3.4.2",

File diff suppressed because it is too large Load diff

View file

@ -1747,38 +1747,4 @@ describe('choices', () => {
});
});
});
describe.skip('private methods', () => {
describe('_triggerChange', () => {});
describe('_selectPlaceholderChoice', () => {});
describe('_handleButtonAction', () => {});
describe('_handleItemAction', () => {});
describe('_handleChoiceAction', () => {});
describe('_handleBackspace', () => {});
describe('_handleLoadingState', () => {});
describe('_canAddItem', () => {});
describe('_ajaxCallback', () => {});
describe('_searchChoices', () => {});
describe('_handleSearch', () => {});
describe('_addEventListeners', () => {});
describe('_removeEventListeners', () => {});
describe('_onKeyDown', () => {});
describe('_onTouchMove', () => {});
describe('_onTouchEnd', () => {});
describe('_onMouseDown', () => {});
describe('_onMouseOver', () => {});
describe('_onClick', () => {});
describe('_onFocus', () => {});
describe('_onBlur', () => {});
describe('_scrollToChoice', () => {});
describe('_highlightChoice', () => {});
describe('_addItem', () => {});
describe('_removeItem', () => {});
describe('_addChoice', () => {});
describe('_clearChoices', () => {});
describe('_addGroup', () => {});
describe('_getTemplate', () => {});
describe('_createTemplates', () => {});
describe('_createStructure', () => {});
});
});