[ReactNative] Add AppEventsTest

This commit is contained in:
Spencer Ahrens
2015-05-19 23:47:38 -07:00
parent c1609bcab8
commit 32666f0aa2
4 changed files with 74 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
#import "FBSnapshotTestController.h"
#import "RCTAssert.h"
#import "RCTEventDispatcher.h"
#import "RCTLog.h"
#import "RCTUIManager.h"
@@ -63,4 +64,9 @@ RCT_EXPORT_METHOD(markTestCompleted)
}];
}
RCT_EXPORT_METHOD(sendAppEvent:(NSString *)name body:(id)body)
{
[_bridge.eventDispatcher sendAppEventWithName:name body:body];
}
@end