Skip to content

Commit

Permalink
Fix tests (even though they're not doing anything useful yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnHols committed May 8, 2017
1 parent 19b864e commit bce1958
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "react-app"
}
1 change: 0 additions & 1 deletion _config.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"homepage": "https://martijnhols.github.io/HolyPaladinAnalyzer/build/",
"devDependencies": {
"react-scripts": "0.8.5"
"react-scripts": "0.9.5"
},
"dependencies": {
"chartist": "^0.11.0",
Expand Down
2 changes: 1 addition & 1 deletion src/App.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import App from 'Main/App';

it('renders without crashing', () => {
const div = document.createElement('div');
Expand Down
3 changes: 3 additions & 0 deletions src/Main/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class App extends Component {
resultTab: React.PropTypes.string,
}),
};
static defaultProps = {
params: {},
};

get reportCode() {
return this.props.params.reportCode;
Expand Down
6 changes: 3 additions & 3 deletions src/Main/Mana.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,17 @@ class Mana extends React.PureComponent {
...bosses.map((series, index) => ({
className: `boss-health boss-${index} boss-${series.guid}`,
name: `${series.name} Health`,
data: Object.values(series.data),
data: Object.keys(series.data).map(key => series.data[key]),
})),
{
className: 'mana',
name: 'Mana',
data: Object.values(manaBySecond),
data: Object.keys(manaBySecond).map(key => manaBySecond[key]),
},
{
className: 'death',
name: 'Deaths',
data: Object.values(deathsBySecond),
data: Object.keys(deathsBySecond).map(key => deathsBySecond[key]),
}
],
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Module from 'Parser/Core/Module';

import { BEACON_TYPES } from '../../Constants';

const BEACONS = Object.values(BEACON_TYPES);
const BEACONS = Object.keys(BEACON_TYPES).map(key => BEACON_TYPES[key]);

const debug = true;

Expand Down

0 comments on commit bce1958

Please sign in to comment.