Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Add tests for movie manager #58

Merged
merged 5 commits into from
Mar 8, 2017
Merged

Add tests for movie manager #58

merged 5 commits into from
Mar 8, 2017

Conversation

mammuth
Copy link
Member

@mammuth mammuth commented Mar 6, 2017

Related #57

func receiveData(_ data: [DataElement], expectation: XCTestExpectation) {
let movies = data.flatMap { $0 as? Movie }
let dateNow = Date()
let upcomingMovies = movies.filter() { movie in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future. If the method only has a trailing closure omit the () just like in flatMap a few lines up

@mammuth mammuth merged commit 0832273 into master Mar 8, 2017
@mammuth mammuth deleted the max/tests branch March 9, 2017 07:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants