@aofl/form-validate
Advanced tools
+1
-1
| { | ||
| "name": "@aofl/form-validate", | ||
| "version": "1.1.2", | ||
| "version": "1.2.0", | ||
| "description": "Form validation mixin for AoflElement", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,3 +17,3 @@ /* eslint no-invalid-this: "off", require-jsdoc: "off" */ | ||
| resolve(value === 'hello'); | ||
| }, 200); | ||
| }, 50); | ||
| }); | ||
@@ -27,3 +27,3 @@ } | ||
| resolve(value === 'world'); | ||
| }, 400); | ||
| }, 100); | ||
| }); | ||
@@ -108,12 +108,10 @@ } | ||
| this.testForm.form.firstname.validate(); | ||
| this.testForm.form.validateComplete; | ||
| setTimeout(() => { | ||
| this.testForm.lastname = 'world'; | ||
| this.testForm.form.lastname.validate(); | ||
| this.testForm.form.validateComplete | ||
| .then(() => { | ||
| expect(this.testForm.form.observed).to.be.true; | ||
| resolve(); | ||
| }); | ||
| }, 50); | ||
| this.testForm.form.validateComplete | ||
| .then(() => { | ||
| expect(this.testForm.form.observed).to.be.true; | ||
| resolve(); | ||
| }); | ||
| this.testForm.lastname = 'world'; | ||
| this.testForm.form.lastname.validate(); | ||
| }); | ||
@@ -120,0 +118,0 @@ } catch (e) { |
37877
-0.27%1053
-0.28%