Custom logic blocks for RCTTestRunner's runTest: method

Reviewed By: majak

Differential Revision: D2626497

fb-gh-sync-id: c78e3b47be4ee192e899594bd05b13521af7172e
This commit is contained in:
Pawel Sienkowski
2015-11-13 08:34:26 -08:00
committed by facebook-github-bot-3
parent 760a2fc79a
commit 3a42661b47
4 changed files with 43 additions and 16 deletions

View File

@@ -12,7 +12,6 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>
#import "RCTSparseArray.h"

View File

@@ -47,7 +47,7 @@
[_runner runTest:_cmd
module:@"IntegrationTestHarnessTest"
initialProps:@{@"waitOneFrame": @YES}
expectErrorBlock:nil];
configurationBlock:nil];
}
- (void)testTheTester_ExpectError
@@ -55,6 +55,7 @@
[_runner runTest:_cmd
module:@"IntegrationTestHarnessTest"
initialProps:@{@"shouldThrow": @YES}
configurationBlock:nil
expectErrorRegex:@"because shouldThrow"];
}