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:
Aditya Singh
2026-02-12 18:15:29 +05:30
committed by GitHub
parent 3caf686de6
commit 9b7a08bafb

View File

@@ -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.