BREAKING CHANGE(core): switch to esm

This commit is contained in:
2022-08-07 16:37:19 +02:00
parent 8eafd81c9f
commit bf6d9ad777
10 changed files with 7783 additions and 18341 deletions

View File

@ -1,5 +1,5 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as smartsmtp from '../ts/index';
import * as smartsmtp from '../ts/index.js';
import { Qenv } from '@pushrocks/qenv';
import * as smartmail from '@pushrocks/smartmail';
@ -14,7 +14,7 @@ tap.test('should create a valid instance of Smartsmtp', async () => {
smtpUser: testQenv.getEnvVarOnDemand('SMTP_USER'),
smtpPassword: testQenv.getEnvVarOnDemand('SMTP_PASSWORD'),
});
expect(testSmartsmtp).to.be.instanceOf(smartsmtp.Smartsmtp);
expect(testSmartsmtp).toBeInstanceOf(smartsmtp.Smartsmtp);
});
tap.test('should send a message with empty body', async () => {