Skip to content

Commit

Permalink
Update tests for same validation
Browse files Browse the repository at this point in the history
  • Loading branch information
kdamball authored Jul 5, 2018
1 parent 1384132 commit f215c33
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/unit/validators/same-validator-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ test('it validates properly', function(assert) {
subject.validate('foo', argumentsObj('address', 'asd')).message,
'mustBeSame'
);
});

test('it allows empty values for chaining', function(assert) {
assert.equal(subject.validate(''), undefined);

assert.equal(subject.validate(null), undefined);

assert.equal(
subject.validate('foo', argumentsObj('address', '')).message,
'mustBeSame'
);
});

0 comments on commit f215c33

Please sign in to comment.