mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-30 16:01:14 -04:00
fix(curriculum): update test to assert valid year value lab leap year calculator (#65853)
Co-authored-by: majestic-owl448 <26656284+majestic-owl448@users.noreply.github.com>
This commit is contained in:
@@ -44,6 +44,9 @@ You should declare a variable `year` and assign it a value to check if it is a l
|
||||
|
||||
```js
|
||||
assert.isDefined(year);
|
||||
assert.isNumber(year);
|
||||
assert.isAtLeast(year, 0);
|
||||
assert.isTrue(Number.isInteger(year));
|
||||
```
|
||||
|
||||
The `year` variable shouldn't be empty.
|
||||
|
||||
Reference in New Issue
Block a user