mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08: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:
parent
3caf686de6
commit
9b7a08bafb
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user