From bed62108678bc8b7f8a76cd86741aa1f3080a499 Mon Sep 17 00:00:00 2001 From: Antoine SEIN <142824551+asein-sinch@users.noreply.github.com> Date: Thu, 12 Dec 2024 19:10:59 +0100 Subject: [PATCH] dummy commit to debug the error in the CI --- .../models/v1/emails/request/helper.test.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/mailgun/tests/models/v1/emails/request/helper.test.ts b/packages/mailgun/tests/models/v1/emails/request/helper.test.ts index 748ceea..0b177cf 100644 --- a/packages/mailgun/tests/models/v1/emails/request/helper.test.ts +++ b/packages/mailgun/tests/models/v1/emails/request/helper.test.ts @@ -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)'); });