Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: unit test nisn in year 2024 #26

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/test/functions/_nomorIndukSiswaNasional.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ describe('NISN', () => {
describe('is valid', () => {
it('if it contains ' + NISN_LENGTH + ' digit numbers', () => {
expect(isValid('0061231234')).to.be.true // Birth year => 2006
expect(isValid('9991231234')).to.be.true // Birth year => 1999
expect(isValid('0041231234')).to.be.true // Birth year => 2004
})

it('if it still inside student periode of ' + NISN_AGE_VALIDITY + ' years', () => {
expect(isValid('0061231234')).to.be.true // Birth year => 2006
expect(isValid('9991231234')).to.be.true // Birth year => 1999
expect(isValid('0041231234')).to.be.true // Birth year => 2004
})
})

Expand Down
Loading