@@ -13,7 +13,7 @@ final class SnapshotTests: XCTestCase {
1313
1414 // MARK: - Snapshots ViewControllers
1515
16- func testInAppModificationDisabled( ) throws {
16+ func testInAppModificationDisabled( ) {
1717 assertVCSnapshotWithActionFromHost {
1818 try ? XConfigs . show ( from: $0, animated: false )
1919 }
@@ -32,28 +32,28 @@ final class SnapshotTests: XCTestCase {
3232 }
3333 }
3434
35- func testInputValueViewController( ) throws {
35+ func testInputValueViewController( ) {
3636 let vc = InputValueViewController ( viewModel: . init( model: . init( key: " Hello " , value: " World " , displayName: " Hello " ) ) ) . wrapInsideNavVC ( ) . preferAsHalfSheet ( )
3737 assertVCSnapshotWithActionFromHost {
3838 $0. present ( vc, animated: false )
3939 }
4040 }
4141
42- func testInputValueViewControllerJSON( ) throws {
42+ func testInputValueViewControllerJSON( ) {
4343 let vc = InputValueViewController ( viewModel: . init( model: . init( key: " JSON " , value: " { \" name \" : \" Kel \" , \" city \" : \" Melbourne \" } " , displayName: " Contact " ) ) ) . wrapInsideNavVC ( ) . preferAsHalfSheet ( )
4444 assertVCSnapshotWithActionFromHost {
4545 $0. present ( vc, animated: false )
4646 }
4747 }
4848
49- func testInputValueViewControllerURL( ) throws {
49+ func testInputValueViewControllerURL( ) {
5050 let vc = InputValueViewController ( viewModel: . init( model: . init( key: " URL " , value: " https://google.com " , displayName: " URL " ) ) ) . wrapInsideNavVC ( ) . preferAsHalfSheet ( )
5151 assertVCSnapshotWithActionFromHost {
5252 $0. present ( vc, animated: false )
5353 }
5454 }
5555
56- func testOptionViewController( ) throws {
56+ func testOptionViewController( ) {
5757 let choices = [ 1 , 2 , 3 , 4 ] . map { " Value \( $0) " } . map { Choice ( displayName: $0, value: $0) }
5858 let vc = OptionViewController ( viewModel: . init( model: . init( key: " Name " , value: " Value1 " , choices: choices, displayName: " Name " ) ) ) . wrapInsideNavVC ( ) . preferAsHalfSheet ( )
5959 assertVCSnapshotWithActionFromHost {
@@ -63,39 +63,39 @@ final class SnapshotTests: XCTestCase {
6363
6464 // MARK: - Snapshots - Views
6565
66- func testActionView( ) throws {
66+ func testActionView( ) {
6767 let view = ActionView ( ) . apply {
6868 $0. configure ( with: " Action name " )
6969 $0. widthAnchor. constraint ( equalToConstant: 320 ) . isActive = true
7070 }
7171 assertSnapshot ( matching: view, as: . image( precision: 0.95 ) )
7272 }
7373
74- func testKeyValueView( ) throws {
74+ func testKeyValueView( ) {
7575 let view = KeyValueView ( ) . apply {
7676 $0. configure ( with: ( " Name " , " Value " ) )
7777 $0. widthAnchor. constraint ( equalToConstant: 320 ) . isActive = true
7878 }
7979 assertSnapshot ( matching: view, as: . image( precision: 0.95 ) )
8080 }
8181
82- func testKeyValueViewWithLongValue( ) throws {
82+ func testKeyValueViewWithLongValue( ) {
8383 let view = KeyValueView ( ) . apply {
8484 $0. configure ( with: ( " Name " , " This a long value. Lorem ipsum sit dolor amet. " ) )
8585 $0. widthAnchor. constraint ( equalToConstant: 320 ) . isActive = true
8686 }
8787 assertSnapshot ( matching: view, as: . image( precision: 0.95 ) )
8888 }
8989
90- func testToggleView( ) throws {
90+ func testToggleView( ) {
9191 let view = ToggleView ( ) . apply {
9292 $0. configure ( with: ( " Name " , false ) )
9393 $0. widthAnchor. constraint ( equalToConstant: 320 ) . isActive = true
9494 }
9595 assertSnapshot ( matching: view, as: . image( precision: 0.95 ) )
9696 }
9797
98- func testToggleViewWithOnValue( ) throws {
98+ func testToggleViewWithOnValue( ) {
9999 let view = ToggleView ( ) . apply {
100100 $0. configure ( with: ( " Name " , true ) )
101101 $0. widthAnchor. constraint ( equalToConstant: 320 ) . isActive = true
0 commit comments