-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added expectations for on request and completion * Updated the readme
- Loading branch information
Showing
7 changed files
with
102 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// XCTest+Mocker.swift | ||
// Mocker | ||
// | ||
// Created by Antoine van der Lee on 27/05/2020. | ||
// Copyright © 2020 WeTransfer. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import XCTest | ||
|
||
public extension XCTestCase { | ||
func expectationForRequestingMock(_ mock: inout Mock) -> XCTestExpectation { | ||
let mockExpectation = expectation(description: "\(mock) should be requested") | ||
mock.onRequestExpectation = mockExpectation | ||
return mockExpectation | ||
} | ||
|
||
func expectationForCompletingMock(_ mock: inout Mock) -> XCTestExpectation { | ||
let mockExpectation = expectation(description: "\(mock) should be finishing") | ||
mock.onCompletedExpectation = mockExpectation | ||
return mockExpectation | ||
} | ||
} |
Submodule WeTransfer-iOS-CI
updated
5 files
+1 −4 | Bitrise/tag_releasing_bitrise.yml | |
+3 −1 | Bitrise/testing_bitrise.yml | |
+0 −8 | Changelog.md | |
+2 −2 | Fastlane/Fastfile | |
+3 −4 | SwiftLint/.swiftlint-tests.yml |