Fix bug in credit_card.spec.ts

This commit is contained in:
Eric Schultz 2021-01-06 16:45:27 -06:00 committed by Eric Schultz
parent c33380416b
commit 79da440af2

View file

@ -163,7 +163,7 @@ describe('CreditCardTypeManager', () => {
it('that is a two-digit year', () => { it('that is a two-digit year', () => {
const currentTime = new Date() const currentTime = new Date()
const topic = cc.validateCardExpiry(currentTime.getMonth() + 1, const topic = cc.validateCardExpiry(currentTime.getMonth() + 1,
('' + currentTime.getFullYear()).substr(0, 2)) ('' + currentTime.getFullYear()).substr(2, 4))
expect(topic).toBeTruthy() expect(topic).toBeTruthy()
}) })