Updated all possible devDependencies.

This commit is contained in:
Filip Barl
2017-10-17 22:18:05 +02:00
parent 6cc98fdea2
commit 228c9c4ab3
4 changed files with 1466 additions and 1247 deletions

View File

@@ -1,5 +1,4 @@
import { is, fromJS } from 'immutable';
import expect from 'expect';
import { TABLE_VIEW_MODE } from '../../constants/naming';
import { constructEdgeId } from '../../utils/layouter-utils';
@@ -23,29 +22,12 @@ describe('RootReducer', () => {
const NODE_SET = {
n1: {
id: 'n1',
rank: undefined,
adjacency: ['n1', 'n2'],
pseudo: undefined,
label: undefined,
labelMinor: undefined,
filtered: false,
metrics: undefined,
node_count: undefined,
shape: undefined,
stack: undefined
},
n2: {
id: 'n2',
rank: undefined,
adjacency: undefined,
pseudo: undefined,
label: undefined,
labelMinor: undefined,
filtered: false,
metrics: undefined,
node_count: undefined,
shape: undefined,
stack: undefined
}
};
@@ -336,7 +318,7 @@ describe('RootReducer', () => {
expect(nextState.get('topologies').size).toBe(2);
expect(nextState.get('currentTopology').get('name')).toBe('Topo1');
expect(nextState.get('currentTopology').get('url')).toBe('/topo1');
expect(nextState.get('currentTopology').get('options').first().get('id')).toEqual(['option1']);
expect(nextState.get('currentTopology').get('options').first().get('id')).toEqual('option1');
expect(nextState.getIn(['currentTopology', 'options']).toJS()).toEqual([{
id: 'option1',
defaultValue: 'off',
@@ -356,7 +338,7 @@ describe('RootReducer', () => {
expect(nextState.get('topologies').size).toBe(2);
expect(nextState.get('currentTopology').get('name')).toBe('topo 1 grouped');
expect(nextState.get('currentTopology').get('url')).toBe('/topo1-grouped');
expect(nextState.get('currentTopology').get('options')).toNotExist();
expect(nextState.get('currentTopology').get('options')).toBeUndefined();
});
// topology options
@@ -368,7 +350,7 @@ describe('RootReducer', () => {
// default options
expect(activeTopologyOptionsSelector(nextState).has('option1')).toBeTruthy();
expect(activeTopologyOptionsSelector(nextState).get('option1')).toBeA('array');
expect(activeTopologyOptionsSelector(nextState).get('option1')).toBeInstanceOf(Array);
expect(activeTopologyOptionsSelector(nextState).get('option1')).toEqual(['off']);
expect(getUrlState(nextState).topologyOptions.topo1.option1).toEqual(['off']);
@@ -469,7 +451,7 @@ describe('RootReducer', () => {
it('shows nodes that were received', () => {
let nextState = initialState;
nextState = reducer(nextState, ReceiveNodesDeltaAction);
expect(nextState.get('nodes').toJS()).toInclude(NODE_SET);
expect(nextState.get('nodes').toJS()).toEqual(NODE_SET);
});
it('knows a route was set', () => {
@@ -485,11 +467,11 @@ describe('RootReducer', () => {
nextState = reducer(nextState, ClickNodeAction);
expect(nextState.get('selectedNodeId')).toBe('n1');
expect(nextState.get('nodes').toJS()).toInclude(NODE_SET);
expect(nextState.get('nodes').toJS()).toEqual(NODE_SET);
nextState = reducer(nextState, deSelectNode);
expect(nextState.get('selectedNodeId')).toBe(null);
expect(nextState.get('nodes').toJS()).toInclude(NODE_SET);
expect(nextState.get('nodes').toJS()).toEqual(NODE_SET);
});
it('keeps showing nodes on navigating back after node click', () => {
@@ -506,7 +488,7 @@ describe('RootReducer', () => {
RouteAction.state = {topologyId: 'topo1', selectedNodeId: null};
nextState = reducer(nextState, RouteAction);
expect(nextState.get('selectedNodeId')).toBe(null);
expect(nextState.get('nodes').toJS()).toInclude(NODE_SET);
expect(nextState.get('nodes').toJS()).toEqual(NODE_SET);
});
it('closes details when changing topologies', () => {
@@ -532,12 +514,12 @@ describe('RootReducer', () => {
it('resets topology on websocket reconnect', () => {
let nextState = initialState;
nextState = reducer(nextState, ReceiveNodesDeltaAction);
expect(nextState.get('nodes').toJS()).toInclude(NODE_SET);
expect(nextState.get('nodes').toJS()).toEqual(NODE_SET);
nextState = reducer(nextState, CloseWebsocketAction);
expect(nextState.get('websocketClosed')).toBeTruthy();
// keep showing old nodes
expect(nextState.get('nodes').toJS()).toInclude(NODE_SET);
expect(nextState.get('nodes').toJS()).toEqual(NODE_SET);
nextState = reducer(nextState, OpenWebsocketAction);
expect(nextState.get('websocketClosed')).toBeFalsy();

View File

@@ -1,6 +1,6 @@
import expect from 'expect';
import { timer } from '../time-utils';
describe('timer', () => {
it('records how long a function takes to execute', () => {
const add100k = (number) => {
@@ -13,6 +13,6 @@ describe('timer', () => {
const timedFn = timer(add100k);
const result = timedFn(70);
expect(result).toEqual(100070);
expect(timedFn.time).toBeA('number');
expect(Number.isInteger(timedFn.time)).toBeTruthy();
});
});

View File

@@ -49,42 +49,42 @@
"xterm": "2.5.0"
},
"devDependencies": {
"autoprefixer": "6.7.7",
"babel-cli": "6.24.1",
"babel-core": "6.24.1",
"autoprefixer": "7.1.5",
"babel-cli": "6.26.0",
"babel-core": "6.26.0",
"babel-eslint": "8.0.1",
"babel-jest": "19.0.0",
"babel-loader": "7.0.0",
"babel-plugin-transform-object-rest-spread": "6.23.0",
"babel-jest": "21.2.0",
"babel-loader": "6.4.1",
"babel-plugin-transform-object-rest-spread": "6.26.0",
"babel-preset-es2015": "6.24.1",
"babel-preset-react": "6.24.1",
"clean-webpack-plugin": "0.1.16",
"css-loader": "0.28.1",
"clean-webpack-plugin": "0.1.17",
"css-loader": "0.28.7",
"eslint": "4.9.0",
"eslint-config-airbnb": "16.1.0",
"eslint-loader": "1.9.0",
"eslint-plugin-import": "2.7.0",
"eslint-plugin-jsx-a11y": "6.0.2",
"eslint-plugin-react": "7.4.0",
"expect": "1.20.2",
"extract-text-webpack-plugin": "2.1.0",
"file-loader": "0.11.1",
"html-webpack-plugin": "2.28.0",
"http-proxy-rules": "1.1.0",
"file-loader": "1.1.5",
"html-webpack-plugin": "2.30.1",
"http-proxy-rules": "1.1.1",
"immutable-devtools": "0.0.7",
"jest-cli": "19.0.2",
"json-loader": "0.5.4",
"mockdate": "^2.0.1",
"node-sass": "4.5.2",
"jest": "21.2.1",
"jest-cli": "21.2.1",
"json-loader": "0.5.7",
"mockdate": "2.0.2",
"node-sass": "4.5.3",
"postcss-loader": "1.3.3",
"react-addons-perf": "15.4.2",
"redux-devtools": "3.4.0",
"redux-devtools-dock-monitor": "1.1.2",
"redux-devtools-log-monitor": "1.3.0",
"sass-loader": "6.0.3",
"style-loader": "0.17.0",
"sass-loader": "6.0.6",
"style-loader": "0.19.0",
"url": "0.11.0",
"url-loader": "0.5.8",
"url-loader": "0.6.2",
"webpack": "2.4.1"
},
"optionalDependencies": {

File diff suppressed because it is too large Load Diff