fix(core): update
This commit is contained in:
14
test/test.ts
14
test/test.ts
@ -17,13 +17,15 @@ tap.test('should create a valid instance of Smartsmtp', async () => {
|
||||
expect(testSmartsmtp).to.be.instanceOf(smartsmtp.Smartsmtp);
|
||||
});
|
||||
|
||||
|
||||
tap.test('should send a message', async () => {
|
||||
const result = await testSmartsmtp.sendSmartMail(new smartmail.Smartmail({
|
||||
body: '',
|
||||
from: 'smartsmtp@mail.lossless.one',
|
||||
subject: 'this is a test message',
|
||||
}), 'sandbox@mail.git.zone');
|
||||
const result = await testSmartsmtp.sendSmartMail(
|
||||
new smartmail.Smartmail({
|
||||
body: '',
|
||||
from: 'smartsmtp@mail.lossless.one',
|
||||
subject: 'this is a test message',
|
||||
}),
|
||||
'sandbox@mail.git.zone'
|
||||
);
|
||||
console.log(result);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user