Skip to content

Commit

Permalink
added tearDown function and accessability of functions to private
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxfrazer committed Mar 12, 2019
1 parent 45e05fa commit e97bce0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions WeScanTests/VisionRectangleDetectorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import XCTest

final class VisionRectangleDetectorTests: FBSnapshotTestCase {

var containerLayer: CALayer!
var image: UIImage!
private var containerLayer: CALayer!
private var image: UIImage!

override func setUp() {
super.setUp()
Expand Down Expand Up @@ -43,6 +43,12 @@ final class VisionRectangleDetectorTests: FBSnapshotTestCase {

}

override func tearDown() {
super.tearDown()
containerLayer = nil
image = nil
}

func testCorrectlyDetectsAndReturnsQuadilateral() {

let ciImage = CIImage(cgImage: image.cgImage!)
Expand Down

0 comments on commit e97bce0

Please sign in to comment.