fix(core): update

This commit is contained in:
2020-06-18 15:34:05 +00:00
parent 2117c2f5d9
commit 2b1f8a2718
6 changed files with 203 additions and 30 deletions

View File

@ -1,6 +1,17 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as smartmail from '../ts/index';
let emailAddressValidatorInstance: smartmail.EmailAddressValidator;
tap.test('should create an instance of EmailAddressValidator', async () => {
emailAddressValidatorInstance = new smartmail.EmailAddressValidator();
expect(emailAddressValidatorInstance).to.be.instanceOf(smartmail.EmailAddressValidator);
});
tap.test('should validate an email', async () => {
const result = await emailAddressValidatorInstance.validate('sandbox@bleu.de');
});
tap.test('first test', async () => {
const testSmartmail = new smartmail.Smartmail({
body: 'hi there',