From 24672db9be86eb05216c2b0a4dfeb1e6dec2f223 Mon Sep 17 00:00:00 2001 From: Antoine SEIN <142824551+asein-sinch@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:02:38 +0100 Subject: [PATCH] Fix SinchClient parameters for mailgun initialization --- packages/mailgun/tests/rest/v1/emails/emails-api.test.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/mailgun/tests/rest/v1/emails/emails-api.test.ts b/packages/mailgun/tests/rest/v1/emails/emails-api.test.ts index 9698117..96870fa 100644 --- a/packages/mailgun/tests/rest/v1/emails/emails-api.test.ts +++ b/packages/mailgun/tests/rest/v1/emails/emails-api.test.ts @@ -1,4 +1,4 @@ -import { SinchClientParameters } from '@sinch/sdk-client'; +import { MailgunCredentials } from '@sinch/sdk-client'; import { EmailsApi, EmailsApiFixture } from '../../../../src'; import { sendEmailRequestWithHtml, @@ -14,14 +14,12 @@ import { describe('EmailsApi', () => { let emailsApi: EmailsApi; let fixture: EmailsApiFixture; - let credentials: SinchClientParameters; + let credentials: MailgunCredentials; beforeEach(() => { fixture = new EmailsApiFixture(); credentials = { - projectId: 'PROJECT_ID', - keyId: 'KEY_ID', - keySecret: 'KEY_SECRET', + mailgunApiKey: 'API_KEY', }; emailsApi = new EmailsApi(credentials); });