Improve test architecture so failures don't crash the simulator

This commit is contained in:
Nick Lockwood
2015-06-17 07:09:23 -07:00
parent 1718b17a37
commit 6573d256ba
8 changed files with 31 additions and 90 deletions

View File

@@ -22,7 +22,7 @@ var PromiseTest = React.createClass({
Promise.all([
this.testShouldResolve(),
this.testShouldReject(),
]).then(() => RCTTestModule.finish(
]).then(() => RCTTestModule.markTestPassed(
this.shouldResolve && this.shouldReject
));
},
@@ -42,7 +42,7 @@ var PromiseTest = React.createClass({
},
render() {
return <React.View />;
return <React.View />;
}
});