|
9 | 9 | #import <XCTest/XCTest.h>
|
10 | 10 | #import "OCMock/OCMock.h"
|
11 | 11 | #import "InstabugBugReportingBridge.h"
|
12 |
| -#import <Instabug/IBGTypes.h> |
13 |
| -#import "Instabug/Instabug.h" |
| 12 | +#import <InstabugSDK/IBGTypes.h> |
| 13 | +#import "InstabugSDK/InstabugSDK.h" |
14 | 14 | #import "IBGConstants.h"
|
15 | 15 |
|
16 | 16 | @interface InstabugBugReportingTests : XCTestCase
|
@@ -39,7 +39,7 @@ - (void) testgivenBoolean$setBugReportingEnabled_whenQuery_thenShouldCallNativeA
|
39 | 39 | - (void) testgivenInvocationEvent$setInvocationEvents_whenQuery_thenShouldCallNativeApiWithArgs {
|
40 | 40 | NSArray *invocationEventsArr;
|
41 | 41 | invocationEventsArr = [NSArray arrayWithObjects: @(IBGInvocationEventScreenshot), nil];
|
42 |
| - |
| 42 | + |
43 | 43 | [self.instabugBridge setInvocationEvents:invocationEventsArr];
|
44 | 44 | IBGInvocationEvent invocationEvents = 0;
|
45 | 45 | for (NSNumber *boxedValue in invocationEventsArr) {
|
@@ -76,7 +76,7 @@ - (void) testgivenHandlerSUBMIT$setOnSDKDismissedHandler_whenQuery_thenShouldCal
|
76 | 76 | RCTResponseSenderBlock callback = ^(NSArray *response) {};
|
77 | 77 | [partialMock setOnSDKDismissedHandler:callback];
|
78 | 78 | XCTAssertNotNil(IBGBugReporting.didDismissHandler);
|
79 |
| - |
| 79 | + |
80 | 80 | NSDictionary *result = @{ @"dismissType": @"SUBMIT",
|
81 | 81 | @"reportType": @"feedback"};
|
82 | 82 | OCMStub([partialMock sendEventWithName:@"IBGpostInvocationHandler" body:result]);
|
@@ -137,14 +137,14 @@ - (void) testgivenArgs$showBugReportingWithReportTypeAndOptions_whenQuery_thenSh
|
137 | 137 | }
|
138 | 138 | OCMStub([mock showWithReportType:reportType options:parsedOptions]);
|
139 | 139 | [self.instabugBridge show:reportType options:options];
|
140 |
| - |
| 140 | + |
141 | 141 | XCTestExpectation *expectation = [self expectationWithDescription:@"Test ME PLX"];
|
142 |
| - |
| 142 | + |
143 | 143 | [[NSRunLoop mainRunLoop] performBlock:^{
|
144 | 144 | OCMVerify([mock showWithReportType:reportType options:parsedOptions]);
|
145 | 145 | [expectation fulfill];
|
146 | 146 | }];
|
147 |
| - |
| 147 | + |
148 | 148 | [self waitForExpectationsWithTimeout:EXPECTATION_TIMEOUT handler:nil];
|
149 | 149 | }
|
150 | 150 |
|
|
0 commit comments