Updating tests - state seems broken, needs attention

This commit is contained in:
James Barnsley
2020-10-28 21:24:38 +13:00
parent c511b763fb
commit 6da4181fa7
7 changed files with 256 additions and 257 deletions

View File

@ -21,14 +21,12 @@ import * as spotifyActions from '../services/spotify/actions';
import * as lastfmActions from '../services/lastfm/actions';
import {
uriSource,
getFromUri,
isLoading,
sourceIcon,
} from '../util/helpers';
import Button from '../components/Button';
import { makeLoadingSelector, makeItemSelector, makeLibrarySelector } from '../util/selectors';
import { makeLoadingSelector, makeItemSelector } from '../util/selectors';
export class Album extends React.Component {
class Album extends React.Component {
componentDidMount = () => {
const {
uri,
@ -305,6 +303,10 @@ const mapDispatchToProps = (dispatch) => ({
lastfmActions: bindActionCreators(lastfmActions, dispatch),
});
export {
Album,
};
export default connect(
mapStateToProps,
mapDispatchToProps,