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

Commit ff82da7

Browse files
committed
Add an additional expectation for the datetime spec
1 parent 6145134 commit ff82da7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

specs/validators/datetime-spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ describe('validators.datetime', function() {
306306
var options = {message: 'foobar'}
307307
, value = "2013-10-25 00:00:00";
308308
expect(datetime(value, options)).toEqual('foobar');
309+
expect(datetime(value, {})).toEqual('barfoo');
309310
expect(validate.validators.datetime.options)
310311
.toEqual({message: "barfoo", earliest: "2013-10-26 00:00:00"});
311312
expect(options).toEqual({message: "foobar"});

0 commit comments

Comments
 (0)