Fix bug in credit_card.spec.ts
This commit is contained in:
parent
c33380416b
commit
79da440af2
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ describe('CreditCardTypeManager', () => {
|
|||
it('that is a two-digit year', () => {
|
||||
const currentTime = new Date()
|
||||
const topic = cc.validateCardExpiry(currentTime.getMonth() + 1,
|
||||
('' + currentTime.getFullYear()).substr(0, 2))
|
||||
('' + currentTime.getFullYear()).substr(2, 4))
|
||||
expect(topic).toBeTruthy()
|
||||
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue