-
-
Save Waksuu/b2f9ec33702e3ef977cd8ec2c257021f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { mapStateToProps, mapDispatchToProps, MoviePanel } from "../../../app/movie/MoviePanel.component"; | |
... | |
const MoviePanelMock: FC = connect(mapStateToProps, ( | |
dispatch: ThunkDispatch<AppState, undefined, AppActions> | |
) => mapDispatchToProps(getAllMoviesMock)(dispatch))(MoviePanel); | |
const getAllMoviesMock = (): Promise<MovieDTO[]> => Promise.resolve(mockMovies); | |
const mockMovies: MovieDTO[] = [ | |
{ | |
id: 1, | |
name: "Mock movie 1" | |
}, | |
{ | |
id: 2, | |
name: "Mock movie 2" | |
}, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment