1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-27 01:19:00 +02:00

lint(error): make lint happy

This commit is contained in:
Corinne Krych 2018-02-16 21:18:20 +01:00
parent bfee62ed82
commit aa3fb71dc3
6 changed files with 9 additions and 7 deletions

View File

@ -27,7 +27,7 @@ class ArchiveList extends Component {
))} ))}
</span> </span>
); );
debugger;
return strategiesList; return strategiesList;
} }
renderStrategiesInList(feature) { renderStrategiesInList(feature) {

View File

@ -182,4 +182,4 @@ export function calc(value, total, decimal) {
} }
export function getDisplayName(WrappedComponent) { export function getDisplayName(WrappedComponent) {
return WrappedComponent.displayName || WrappedComponent.name || 'Component'; return WrappedComponent.displayName || WrappedComponent.name || 'Component';
}; }

View File

@ -21,14 +21,14 @@ test('renders correctly with 0% done no fallback', () => {
test('renders correctly with 15% done with fallback', () => { test('renders correctly with 15% done with fallback', () => {
const percent = 15; const percent = 15;
const tree = renderer.create(<Progress strokeWidth={15} percentage={percent} isFallback={true} />); const tree = renderer.create(<Progress strokeWidth={15} percentage={percent} isFallback />);
expect(tree).toMatchSnapshot(); expect(tree).toMatchSnapshot();
}); });
test('renders correctly with 0% done with fallback', () => { test('renders correctly with 0% done with fallback', () => {
const percent = 0; const percent = 0;
const tree = renderer.create(<Progress strokeWidth={15} percentage={percent} isFallback={true} />); const tree = renderer.create(<Progress strokeWidth={15} percentage={percent} isFallback />);
expect(tree).toMatchSnapshot(); expect(tree).toMatchSnapshot();
}); });

View File

@ -67,7 +67,9 @@ export default class InputList extends Component {
label="Add list entry" label="Add list entry"
onFocus={this.onFocus.bind(this)} onFocus={this.onFocus.bind(this)}
onBlur={this.onBlur.bind(this)} onBlur={this.onBlur.bind(this)}
ref={(input) => { this.textInput = input; }} ref={input => {
this.textInput = input;
}}
/> />
<IconButton <IconButton
name="add" name="add"