diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b9147e9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: node_js +node_js: + - "9" +cache: + directories: + - node_modules +script: + - npm run test + # - yarn build +# deploy: +# provider: pages +# skip_cleanup: true +# github_token: $github_token +# local_dir: build +# on: +# branch: master diff --git a/src/component/eduComponent/studentSize/__snapshots__/studentSize.test.js.snap b/src/component/eduComponent/studentSize/__snapshots__/studentSize.test.js.snap deleted file mode 100644 index f132644..0000000 --- a/src/component/eduComponent/studentSize/__snapshots__/studentSize.test.js.snap +++ /dev/null @@ -1,458 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`VIsualization for student size should switch to show gradsize 1`] = ` -ShallowWrapper { - "length": 1, - Symbol(enzyme.__root__): [Circular], - Symbol(enzyme.__unrendered__): , - Symbol(enzyme.__renderer__): Object { - "batchedUpdates": [Function], - "getNode": [Function], - "render": [Function], - "simulateEvent": [Function], - "unmount": [Function], - }, - Symbol(enzyme.__node__): Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - , - - - - - -, - ], - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "checkedChildren": "Undergraduate", - "defaultChecked": true, - "onChange": [Function], - "prefixCls": "ant-switch", - "unCheckedChildren": "Graduate", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": Array [ - , - , - , - , - ], - "data": Array [ - Object { - "size": 1, - "year": "2005", - }, - ], - "forceFit": true, - "height": 400, - "scale": Object { - "size": Object { - "alias": "student size", - }, - "year": Object { - "alias": "year", - }, - }, - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "line": Object { - "stroke": "#E6E6E6", - }, - "name": "year", - "tickLine": null, - "title": null, - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "grid": null, - "line": false, - "name": "student size", - "tickLine": null, - "title": null, - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object {}, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "color": "l (270) 0:rgba(255, 146, 255, 1) .5:rgba(100, 268, 255, 1) 1:rgba(215, 0, 255, 1)", - "position": "year*size", - "shape": "smooth", - "size": 1, - "style": Object { - "shadowBlur": 60, - "shadowColor": "l (270) 0:rgba(21, 146, 255, 0)", - "shadowOffsetY": 6, - }, - "type": "line", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - ], - "type": [Function], - }, - ], - "type": "div", - }, - Symbol(enzyme.__nodes__): Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "host", - "props": Object { - "children": Array [ - , - - - - - -, - ], - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "checkedChildren": "Undergraduate", - "defaultChecked": true, - "onChange": [Function], - "prefixCls": "ant-switch", - "unCheckedChildren": "Graduate", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "children": Array [ - , - , - , - , - ], - "data": Array [ - Object { - "size": 1, - "year": "2005", - }, - ], - "forceFit": true, - "height": 400, - "scale": Object { - "size": Object { - "alias": "student size", - }, - "year": Object { - "alias": "year", - }, - }, - }, - "ref": null, - "rendered": Array [ - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "line": Object { - "stroke": "#E6E6E6", - }, - "name": "year", - "tickLine": null, - "title": null, - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "grid": null, - "line": false, - "name": "student size", - "tickLine": null, - "title": null, - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object {}, - "ref": null, - "rendered": null, - "type": [Function], - }, - Object { - "instance": null, - "key": undefined, - "nodeType": "class", - "props": Object { - "color": "l (270) 0:rgba(255, 146, 255, 1) .5:rgba(100, 268, 255, 1) 1:rgba(215, 0, 255, 1)", - "position": "year*size", - "shape": "smooth", - "size": 1, - "style": Object { - "shadowBlur": 60, - "shadowColor": "l (270) 0:rgba(21, 146, 255, 0)", - "shadowOffsetY": 6, - }, - "type": "line", - }, - "ref": null, - "rendered": null, - "type": [Function], - }, - ], - "type": [Function], - }, - ], - "type": "div", - }, - ], - Symbol(enzyme.__options__): Object { - "adapter": ReactSixteenAdapter { - "options": Object { - "enableComponentDidUpdateOnSetState": true, - }, - }, - }, -} -`; diff --git a/src/component/universityCard/card.js b/src/component/universityCard/card.js index c1e40a6..1618f5b 100644 --- a/src/component/universityCard/card.js +++ b/src/component/universityCard/card.js @@ -30,6 +30,7 @@ export const Card = ({ university, history, selectUniversity }: Props) => { ); + /* istanbul ignore next */ const renderActions = () => { const actionList = []; const floatFormatter = new window.Intl.NumberFormat('en-US', {