mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Improve test architecture so failures don't crash the simulator
This commit is contained in:
@@ -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 />;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user