Skip to content

Commit

Permalink
dummy commit to debug the error in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
asein-sinch committed Dec 12, 2024
1 parent bdae0d0 commit bed6210
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/mailgun/tests/models/v1/emails/request/helper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ describe('appendFilteredPropertiesToFormData', () => {
const obj = {
'o:dkim': true,
'o:tracking': 'yes',
'v:first_name': 'John',
'v:last_name': 'Smith',
'v:my_message_id': '123',
'v:date1': '2024-06-06T13:42:42',
// 'v:first_name': 'John',
// 'v:last_name': 'Smith',
// 'v:my_message_id': '123',
// 'v:date1': '2024-06-06T13:42:42',
'v:date2': new Date('2024-06-06T13:42:42'),
};

appendFilteredPropertiesToFormData(obj, 'v:', formData);

expect(appendSpy).toHaveBeenCalledTimes(5);
expect(appendSpy).toHaveBeenCalledWith('v:first_name', 'John');
expect(appendSpy).toHaveBeenCalledWith('v:last_name', 'Smith');
expect(appendSpy).toHaveBeenCalledWith('v:my_message_id', '123');
expect(appendSpy).toHaveBeenCalledWith('v:date1', '2024-06-06T13:42:42');
expect(appendSpy).toHaveBeenCalledTimes(1);
// expect(appendSpy).toHaveBeenCalledWith('v:first_name', 'John');
// expect(appendSpy).toHaveBeenCalledWith('v:last_name', 'Smith');
// expect(appendSpy).toHaveBeenCalledWith('v:my_message_id', '123');
// expect(appendSpy).toHaveBeenCalledWith('v:date1', '2024-06-06T13:42:42');
expect(appendSpy).toHaveBeenCalledWith('v:date2',
'Thu Jun 06 2024 13:42:42 GMT+0200 (Central European Summer Time)');
});
Expand Down

0 comments on commit bed6210

Please sign in to comment.