[MOB-12189] add-tests-to-iterableinappmanager#712
Conversation
…eneration in MockRNIterableAPI
|
Diff Coverage: Not applicable. There was no coverage data reported for the files in this diff. Total Coverage: This PR will increase coverage by 0.84%. File Coverage Changes
🛟 Help
This is from Qlty Cloud, the successor to Code Climate Quality. Learn more. |
evantk91
left a comment
There was a problem hiding this comment.
LGTM just some comments for future work
| }; | ||
| resolve(mockHtmlContent); | ||
| }); | ||
| } |
| // WHEN calling removeMessage with invalid enum values | ||
| // THEN it should not throw an error (values are passed through) | ||
| expect(() => { | ||
| manager.removeMessage(mockMessage, 999 as IterableInAppLocation, 888 as IterableInAppDeleteSource); |
There was a problem hiding this comment.
We may want these errors to be handled in the future for invalid enum values.
| expect(() => { | ||
| manager.showMessage(mockMessage, 'true' as unknown as boolean); | ||
| manager.setReadForMessage(mockMessage, 'false' as unknown as boolean); | ||
| manager.setAutoDisplayPaused('true' as unknown as boolean); |
🔹 JIRA Ticket(s) if any
✏️ Description
Add tests to IterableInAppManager