Added unit tests for module init

Summary: The module initialization process is complex and full of race conditions. This diff adds a set of unit tests that verify that modules setup happens in the correct order, and enforces all the various conditions for main/background init.

Reviewed By: javache

Differential Revision: D2994145

fb-gh-sync-id: 92ea84508cdeeb280ff0fb9e9b2dffa8dbc37e66
shipit-source-id: 92ea84508cdeeb280ff0fb9e9b2dffa8dbc37e66
This commit is contained in:
Nick Lockwood
2016-03-01 09:44:05 -08:00
committed by Facebook Github Bot 5
parent 0db22f184d
commit 35da174339
10 changed files with 452 additions and 29 deletions

View File

@@ -238,4 +238,9 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init);
_methodQueue = nil;
}
- (NSString *)description
{
return [NSString stringWithFormat:@"<%@: %p; name=\"%@\">", [self class], self, self.name];
}
@end