Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Fix broken unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Verkoeyen committed Sep 14, 2017
1 parent 8653958 commit 46c92eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/unit/TransitionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TransitionTests: XCTestCase {

func testTransitionDidEndCausesTransitionCompletion() {
let presentedViewController = UIViewController()
presentedViewController.transitionController.transition = InstantCompletionTransition()
presentedViewController.transitionController.transitions = [InstantCompletionTransition()]

let didComplete = expectation(description: "Did complete")
window.rootViewController!.present(presentedViewController, animated: true) {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/TransitionWithPresentationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TransitionWithPresentationTests: XCTestCase {

func testPresentationControllerIsQueried() {
let presentedViewController = UIViewController()
presentedViewController.transitionController.transition = PresentationTransition()
presentedViewController.transitionController.transitions = [PresentationTransition()]

let didComplete = expectation(description: "Did complete")
window.rootViewController!.present(presentedViewController, animated: true) {
Expand Down

0 comments on commit 46c92eb

Please sign in to comment.