Skip to content

Commit

Permalink
✅ test: remove dep. warning
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed May 10, 2016
1 parent 1714776 commit f04f59d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/formGenerator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
if (oldModel == newModel) // model got a new property
return;
console.log("Model changed!");
//console.log("Model changed!");
if (this.options.validateAfterLoad === true && this.isNewModel !== true)
this.validate();
else
Expand Down
5 changes: 3 additions & 2 deletions test/unit/specs/utils/validators.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,9 @@ describe("Validators", () => {
});

it("should give error if value is not a date", () => {
check(v.date, "Foo", field, 1);
check(v.date, true, field, 1);
// give MomentJS deprecated warning
//check(v.date, "Asd", field, 1);
//check(v.date, true, field, 1);
});

it("should not give error if value is null and field is not required", () => {
Expand Down

0 comments on commit f04f59d

Please sign in to comment.