Skip to content

Commit e550fec

Browse files
committed
Remove debug guff
1 parent 99909f9 commit e550fec

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/directives/schema-validate.directive.spec.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,9 @@ describe('schema-validate.directive.js', function() {
3737
})
3838

3939
);
40-
console.log('tv4', tv4);
40+
4141
tv4.defineError('EMAIL', 10001, 'Invalid email address');
4242
tv4.defineKeyword('email', function(data, value, schema) {
43-
return {
44-
code: 10001,
45-
};
46-
console.log('tv41', schema.email);
47-
console.log('tv42', /^\S+@\S+$/.test(data));
4843
if (schema.email) {
4944
if (/^\S+@\S+$/.test(data)) {
5045
return null;
@@ -128,8 +123,7 @@ console.log('tv42', /^\S+@\S+$/.test(data));
128123
angular.element(tmpl.find('#testform-email')).val('invalid').trigger('input');
129124
tmpl.find('button.validate').click();
130125
scope.validate_all.should.have.beenCalledOnce;
131-
console.log(JSON.stringify(form));
132-
//form.$valid.should.be.false;
126+
form.$valid.should.be.false;
133127
form.$error['tv4-10001'].should.be.false;
134128
});
135129
});

0 commit comments

Comments
 (0)