Skip to content

Commit 9f07c2f

Browse files
committed
Update init after rebase
1 parent 1281ab4 commit 9f07c2f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/native/NativeInstabug.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export interface InstabugNativeModule extends NativeModule {
3232
token: string,
3333
invocationEvents: InvocationEvent[] | invocationEvent[],
3434
debugLogsLevel: LogLevel,
35+
codePushLabel: string,
3536
): void;
3637
show(): void;
3738

test/modules/Instabug.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,24 +179,24 @@ describe('Instabug Module', () => {
179179
expect(NativeInstabug.init).toBeCalledWith(
180180
instabugConfig.token,
181181
instabugConfig.invocationEvents,
182-
instabugConfig.codePushLabel,
183182
instabugConfig.debugLogsLevel,
183+
instabugConfig.codePushLabel,
184184
);
185185
});
186186

187187
it('should call the native method init with default optional parameters', () => {
188188
const instabugConfig = {
189189
token: 'some-token',
190-
invocationEvents: [Instabug.invocationEvent.floatingButton, Instabug.invocationEvent.shake],
190+
invocationEvents: [InvocationEvent.floatingButton, InvocationEvent.shake],
191191
};
192192
Instabug.init(instabugConfig);
193193

194194
expect(NativeInstabug.init).toBeCalledTimes(1);
195195
expect(NativeInstabug.init).toBeCalledWith(
196196
instabugConfig.token,
197197
instabugConfig.invocationEvents,
198+
LogLevel.error,
198199
'',
199-
LogLevel.Error,
200200
);
201201
});
202202

0 commit comments

Comments
 (0)