-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS 6 - addBreadcrumb - logRNAction #61
Conversation
…-io/react-native-sdk into ios-6-add-breadcrumb-logrnaction
Co-authored-by: Jonathan Munz <[email protected]>
Co-authored-by: Jonathan Munz <[email protected]>
Co-authored-by: Jonathan Munz <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 5.0 #61 +/- ##
==========================================
- Coverage 78.46% 78.15% -0.31%
==========================================
Files 28 28
Lines 1221 1227 +6
Branches 99 98 -1
==========================================
+ Hits 958 959 +1
- Misses 263 268 +5
|
// TODO uncomment the expect once the method is implemented | ||
// expect(mockSetUserAsPayer).toHaveBeenCalled(); | ||
const promiseToResolve = setUserAsPayer(); | ||
jest.runAllTimers(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jest.runAllTimers();
calls shouldn't be needed here
const result = await promiseToResolve; | ||
|
||
expect(mockSetUserAsPayer).toHaveBeenCalled(); | ||
expect(result).toBe(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's not much value in asserting this since it's just the value returned from the mock in this test file
Goal
Refactor RN Action to use Spans
Add Breadcrumb in ios