Skip to content

Commit

Permalink
Fix Test Error: SchemaTypeMoment.validate()
Browse files Browse the repository at this point in the history
  • Loading branch information
segayuu committed Feb 21, 2018
1 parent c2ff17e commit 8176d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/models/types/moment.js
Expand Up @@ -37,7 +37,7 @@ SchemaTypeMoment.prototype.validate = function(value, data) {
value = toMoment(value);

if (!value.isValid()) {
throw new Error(`\`${value}\` is not a valid date!`);
throw new Error('`' + value + '` is not a valid date!');
}

return value;
Expand Down

0 comments on commit 8176d1a

Please sign in to comment.