Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeAstapov committed Oct 31, 2024
1 parent 30e0c8d commit 13521bd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/unit/validators/date-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ test('before', function (assert) {
};
result = validate(1388534400000, cloneOptions(options));
assert.true(processResult(result));

options = {
before: new Date(2015, 1, 1),
format: { year: 'numeric', month: 'numeric', day: 'numeric' },
errorFormat: { year: 'numeric', month: 'numeric', day: 'numeric' },
locale: 'de',
};

result = validate(new Date(2016, 1, 1), cloneOptions(options));
assert.strictEqual(
processResult(result),
Expand Down Expand Up @@ -223,14 +223,14 @@ test('before or on', function (assert) {
};
result = validate(new Date('2015'), cloneOptions(options));
assert.true(processResult(result), 'same dates with onOrBefore string');

options = {
onOrBefore: new Date(2015, 1, 1),
format: { year: 'numeric', month: 'numeric', day: 'numeric' },
errorFormat: { year: 'numeric', month: 'numeric', day: 'numeric' },
locale: 'de',
};

result = validate(new Date(2016, 1, 1), cloneOptions(options));
assert.strictEqual(
processResult(result),
Expand Down Expand Up @@ -308,14 +308,14 @@ test('after', function (assert) {

result = validate('1/1/2016', cloneOptions(options));
assert.true(processResult(result));

options = {
after: new Date(2015, 1, 1),
format: { year: 'numeric', month: 'numeric', day: 'numeric' },
errorFormat: { year: 'numeric', month: 'numeric', day: 'numeric' },
locale: 'de',
};

result = validate(new Date(2014, 1, 1), cloneOptions(options));
assert.strictEqual(
processResult(result),
Expand Down Expand Up @@ -362,14 +362,14 @@ test('after or on', function (assert) {
};
result = validate(new Date('2015', 0), cloneOptions(options));
assert.true(processResult(result), 'same dates with onOrAfter string');

options = {
onOrAfter: new Date(2015, 1, 1),
format: { year: 'numeric', month: 'numeric', day: 'numeric' },
errorFormat: { year: 'numeric', month: 'numeric', day: 'numeric' },
locale: 'de',
};

result = validate(new Date(2014, 1, 1), cloneOptions(options));
assert.strictEqual(
processResult(result),
Expand Down

0 comments on commit 13521bd

Please sign in to comment.