This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Description
Following is a quick test case:
var validate = require("validate.js");
describe("validate", function ()
{
describe("should give correct error for presence validator", function ()
{
it("when validating against date", function ()
{
var obj = {date: new Date()}, constrain = {date: {presence: true}};
expect(validate(obj, constrain)).toBe(undefined);
});
});
});