Skip to content

Commit 342795c

Browse files
authored
Merge pull request #12 from SwiftRex/modernize-snapshots
Modernize snapshots
2 parents 6dd44bd + 164468f commit 342795c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let package = Package(
1616
.library(name: "TestingExtensionsDynamic", type: .dynamic, targets: ["TestingExtensions"])
1717
],
1818
dependencies: [
19-
.package(name: "swift-snapshot-testing", url: "https://github.com/pointfreeco/swift-snapshot-testing.git", .upToNextMajor(from: "1.10.0")),
19+
.package(name: "swift-snapshot-testing", url: "https://github.com/pointfreeco/swift-snapshot-testing.git", .upToNextMajor(from: "1.12.0")),
2020
.package(name: "SwiftRex", url: "https://github.com/SwiftRex/SwiftRex.git", .upToNextMajor(from: "0.8.12"))
2121
],
2222
targets: [

Sources/TestingExtensions/SnapshotTestBase.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ open class SnapshotTestBase: XCTestCase {
2222

2323
open var defaultDevices: [(name: String, device: ViewImageConfig)] {
2424
[
25-
("SE", .iPhoneSe),
26-
("X", .iPhoneX),
25+
("iPhone8", .iPhone8),
26+
("iPhone13proMax", .iPhone13ProMax),
2727
("iPadMini", .iPadMini(.portrait) ),
2828
("iPadPro", .iPadPro12_9(.portrait))
2929
]
@@ -56,7 +56,7 @@ open class SnapshotTestBase: XCTestCase {
5656
}
5757

5858
assertSnapshot(
59-
matching: vc,
59+
of: vc,
6060
as: .image(on: config.device, precision: imageDiffPrecision),
6161
file: file,
6262
testName: "\(testName)-\(config.name)\(suffix)",

0 commit comments

Comments
 (0)