diff --git a/@fiction/core/plugin-email/test/endpoint.unit.test.ts b/@fiction/core/plugin-email/test/endpoint.unit.test.ts index 43d8d6b58..f5ef1514a 100644 --- a/@fiction/core/plugin-email/test/endpoint.unit.test.ts +++ b/@fiction/core/plugin-email/test/endpoint.unit.test.ts @@ -18,13 +18,13 @@ describe('transactional email', async () => { const fictionAws = new FictionAws({ ...testUtils, awsAccessKey, awsAccessKeySecret }) const fictionMedia = new FictionMedia({ ...testUtils, fictionAws, awsBucketMedia }) - await testUtils.init() + const { orgId } = await testUtils.init() afterAll(async () => testUtils.close()) it('sends a transactional email', async () => { - const superImage = await fictionMedia.relativeMedia({ url: new URL('../img/fiction-icon.png', import.meta.url).href }) - const footerImage = await fictionMedia.relativeMedia({ url: new URL('../img/fiction-email-footer.png', import.meta.url).href }) + const superImage = await fictionMedia.relativeMedia({ url: new URL('../img/fiction-icon.png', import.meta.url).href, orgId }) + const footerImage = await fictionMedia.relativeMedia({ url: new URL('../img/fiction-email-footer.png', import.meta.url).href, orgId }) const confirmEmail: TransactionalEmailConfig = { to: 'arpowers@gmail.com', fromName: 'Fiction.com', @@ -133,7 +133,7 @@ describe('transactional email', async () => { expect(result.data?.html).toMatchInlineSnapshot(` "Test Space (test email ๐Ÿงช๐Ÿงช๐Ÿงช)
" `)