Skip to content

Commit 4d426f6

Browse files
BasThomasmbrandonw
authored andcommitted
Fix syntax (#179)
1 parent 626eccb commit 4d426f6

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Documentation/Available-Snapshot-Strategies.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ A snapshot strategy for comparing layers based on pixel equality.
115115
assertSnapshot(matching: layer, as: .image)
116116

117117
// Allow for a 1% pixel difference.
118-
assertSnapshot(matching: layer, as: .image(precision: 0.99)
118+
assertSnapshot(matching: layer, as: .image(precision: 0.99))
119119
```
120120

121121
## CaseIterable
@@ -248,7 +248,7 @@ A snapshot strategy for comparing images based on pixel equality.
248248
assertSnapshot(matching: image, as: .image)
249249

250250
// Allow for a 1% pixel difference.
251-
assertSnapshot(matching: image, as: .image(precision: 0.99)
251+
assertSnapshot(matching: image, as: .image(precision: 0.99))
252252
```
253253

254254
## NSView
@@ -286,12 +286,12 @@ A snapshot strategy for comparing layers based on pixel equality.
286286
assertSnapshot(matching: view, as: .image)
287287

288288
// Allow for a 1% pixel difference.
289-
assertSnapshot(matching: view, as: .image(precision: 0.99)
289+
assertSnapshot(matching: view, as: .image(precision: 0.99))
290290

291291
// Render at a certain size.
292292
assertSnapshot(
293293
matching: view,
294-
as: .image(size: .init(width: 44, height: 44)
294+
as: .image(size: .init(width: 44, height: 44))
295295
)
296296

297297
// Render with a horizontally-compact size class.
@@ -349,12 +349,12 @@ A snapshot strategy for comparing layers based on pixel equality.
349349
assertSnapshot(matching: vc, as: .image)
350350

351351
// Allow for a 1% pixel difference.
352-
assertSnapshot(matching: vc, as: .image(precision: 0.99)
352+
assertSnapshot(matching: vc, as: .image(precision: 0.99))
353353

354354
// Render at a certain size.
355355
assertSnapshot(
356356
matching: vc,
357-
as: .image(size: .init(width: 640, height: 480)
357+
as: .image(size: .init(width: 640, height: 480))
358358
)
359359
```
360360

@@ -478,7 +478,7 @@ A snapshot strategy for comparing images based on pixel equality.
478478
assertSnapshot(matching: image, as: .image)
479479

480480
// Allow for a 1% pixel difference.
481-
assertSnapshot(matching: image, as: .image(precision: 0.99)
481+
assertSnapshot(matching: image, as: .image(precision: 0.99))
482482
```
483483

484484
## UIView
@@ -520,12 +520,12 @@ A snapshot strategy for comparing layers based on pixel equality.
520520
assertSnapshot(matching: view, as: .image)
521521

522522
// Allow for a 1% pixel difference.
523-
assertSnapshot(matching: view, as: .image(precision: 0.99)
523+
assertSnapshot(matching: view, as: .image(precision: 0.99))
524524

525525
// Render at a certain size.
526526
assertSnapshot(
527527
matching: view,
528-
as: .image(size: .init(width: 44, height: 44)
528+
as: .image(size: .init(width: 44, height: 44))
529529
)
530530

531531
// Render with a horizontally-compact size class.
@@ -558,10 +558,10 @@ A snapshot strategy for comparing views based on a recursive description of thei
558558
assertSnapshot(matching: view, as: .recursiveDescription)
559559

560560
// Layout with a certain size.
561-
assertSnapshot(matching: view, as: .recursiveDescription(size: .init(width: 22, height: 22))
561+
assertSnapshot(matching: view, as: .recursiveDescription(size: .init(width: 22, height: 22)))
562562

563563
// Layout with a certain trait collection.
564-
assertSnapshot(matching: view, as: .recursiveDescription(traits: .init(horizontalSizeClass: .regular))
564+
assertSnapshot(matching: view, as: .recursiveDescription(traits: .init(horizontalSizeClass: .regular)))
565565
```
566566

567567
Records:
@@ -645,15 +645,15 @@ A snapshot strategy for comparing layers based on pixel equality.
645645
assertSnapshot(matching: vc, as: .image)
646646

647647
// Allow for a 1% pixel difference.
648-
assertSnapshot(matching: vc, as: .image(precision: 0.99)
648+
assertSnapshot(matching: vc, as: .image(precision: 0.99))
649649

650650
// Render as if on a certain device.
651651
assertSnapshot(matching: vc, on: .iPhoneX(.portrait))
652652

653653
// Render at a certain size.
654654
assertSnapshot(
655655
matching: vc,
656-
as: .image(size: .init(width: 375, height: 667)
656+
as: .image(size: .init(width: 375, height: 667))
657657
)
658658

659659
// Render with a horizontally-compact size class.
@@ -695,7 +695,7 @@ A snapshot strategy for comparing view controller views based on a recursive des
695695
assertSnapshot(matching: vc, as: .recursiveDescription)
696696

697697
// Layout as if on a certain device.
698-
assertSnapshot(matching: vc, as: .recursiveDescription(on: .iPhoneSe(.portrait))
698+
assertSnapshot(matching: vc, as: .recursiveDescription(on: .iPhoneSe(.portrait)))
699699
```
700700

701701
Records:

0 commit comments

Comments
 (0)