-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add app and device info in fileLogger's email body
- Loading branch information
Showing
2 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,10 +85,12 @@ describe('fileLogger', () => { | |
await sendLogs(client) | ||
|
||
expect(Alert.alert).not.toHaveBeenCalled() | ||
expect(sendLogFilesByEmailSpy).toHaveBeenCalledWith({ | ||
subject: 'Log file for ', | ||
to: '[email protected]' | ||
}) | ||
expect(sendLogFilesByEmailSpy).toHaveBeenCalledWith( | ||
expect.objectContaining({ | ||
subject: 'Log file for ', | ||
to: '[email protected]' | ||
}) | ||
) | ||
}) | ||
|
||
it('should do nothing and display alert if logs are disabled', async () => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters