Skip to content

Commit

Permalink
Make most test classes final
Browse files Browse the repository at this point in the history
  • Loading branch information
julianschiavo committed Oct 15, 2018
1 parent f09bda3 commit 365720e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion WeScanTests/AVCaptureVideoOrientationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import AVFoundation

@testable import WeScan

class AVCaptureVideoOrientationTests: XCTestCase {
final class AVCaptureVideoOrientationTests: XCTestCase {

func testPortaitsMapToPortrait() {
XCTAssertEqual(AVCaptureVideoOrientation(deviceOrientation: .portrait), .portrait)
Expand Down
2 changes: 1 addition & 1 deletion WeScanTests/CGAffineTransformTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import XCTest
@testable import WeScan

class CGAffineTransformTests: XCTestCase {
final class CGAffineTransformTests: XCTestCase {

func testScalesUpCorrectly() {

Expand Down
2 changes: 1 addition & 1 deletion WeScanTests/CIRectangleDetectorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import FBSnapshotTestCase
import XCTest
@testable import WeScan

class CIRectangleDetectorTests: FBSnapshotTestCase {
final class CIRectangleDetectorTests: FBSnapshotTestCase {

override func setUp() {
super.setUp()
Expand Down
2 changes: 1 addition & 1 deletion WeScanTests/CaptureSessionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import XCTest
@testable import WeScan

class CaptureSessionTests: XCTestCase {
final class CaptureSessionTests: XCTestCase {

func testAutoScanEnabledByDefault() {
let session = CaptureSession.current
Expand Down
2 changes: 1 addition & 1 deletion WeScanTests/UIImageTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import XCTest
import FBSnapshotTestCase
@testable import WeScan

class UIImageTests: FBSnapshotTestCase {
final class UIImageTests: FBSnapshotTestCase {

override func setUp() {
super.setUp()
Expand Down
4 changes: 1 addition & 3 deletions WeScanTests/VisionRectangleDetectorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ import FBSnapshotTestCase
import XCTest
@testable import WeScan


class VisionRectangleDetectorTests: FBSnapshotTestCase {
final class VisionRectangleDetectorTests: FBSnapshotTestCase {

override func setUp() {
super.setUp()

recordMode = false
}

Expand Down

0 comments on commit 365720e

Please sign in to comment.