fix(core): update

This commit is contained in:
2023-03-27 23:13:37 +02:00
parent 8766f43366
commit f0e981e13e
9 changed files with 4569 additions and 11307 deletions

View File

@@ -8,6 +8,10 @@ tap.test('first test', async () => {
expect(testValidator).toBeInstanceOf(smartvalidator.SmartValidator);
});
tap.test('should check for being a URL', async () => {
expect(testValidator.isUrl('lossless.com')).toBeTrue();
})
tap.test('should check an IBAN', async () => {
expect(testValidator.isIban('AT95 0100 0000 0555 4915')).toBeTrue();
});
@@ -15,6 +19,6 @@ tap.test('should check an IBAN', async () => {
tap.test('escape email', async () => {
const escapedEmail = testValidator.escape('test@example.com');
console.log(escapedEmail);
})
});
tap.start();