Fixed ESLint errors and warning that could be fixed with eslint --fix

This commit is contained in:
Andrey Okonetchnikov
2016-09-13 15:30:58 +02:00
parent 09841c05e2
commit eb14200643
19 changed files with 48 additions and 48 deletions

View File

@ -14,9 +14,9 @@ describe('config', () => {
it('should handle an update', () => {
expect(
config(Immutable.Map({'a': 'b', 'c': 'd'}), configLoaded({'a': 'changed', 'e': 'new'}))
config(Immutable.Map({ 'a': 'b', 'c': 'd' }), configLoaded({ 'a': 'changed', 'e': 'new' }))
).toEqual(
Immutable.Map({'a': 'changed', 'e': 'new'})
Immutable.Map({ 'a': 'changed', 'e': 'new' })
);
});
@ -24,15 +24,15 @@ describe('config', () => {
expect(
config(undefined, configLoading())
).toEqual(
Immutable.Map({isFetching: true})
Immutable.Map({ isFetching: true })
);
});
it('should handle an error', () => {
expect(
config(Immutable.Map({isFetching: true}), configFailed(new Error('Config could not be loaded')))
config(Immutable.Map({ isFetching: true }), configFailed(new Error('Config could not be loaded')))
).toEqual(
Immutable.Map({error: 'Error: Config could not be loaded'})
Immutable.Map({ error: 'Error: Config could not be loaded' })
);
});
});