Skip to content

Commit

Permalink
Add tests to ensure UnionPay test card is of correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
douglaslise committed Jun 27, 2022
1 parent 5bd29eb commit ff8c09f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/unit/validate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ describe('Recurly.validate', function () {

it('should parse union_pay', function () {
assert.strictEqual(recurly.validate.cardType('621093991111324'), 'unknown');
assert.strictEqual(recurly.validate.cardType('6210939911113245'), 'unknown');
assert.strictEqual(recurly.validate.cardType('6210950011113245'), 'unknown');
assert.strictEqual(recurly.validate.cardType('621985000034543'), 'unknown');
assert.strictEqual(recurly.validate.cardType('622545045840850'), 'unknown');
assert.strictEqual(recurly.validate.cardType('6200000000000005'), 'union_pay');
assert.strictEqual(recurly.validate.cardType('6210940011113245'), 'union_pay');
assert.strictEqual(recurly.validate.cardType('6210949911113245'), 'union_pay');
assert.strictEqual(recurly.validate.cardType('8171999927660000'), 'union_pay');
Expand Down

0 comments on commit ff8c09f

Please sign in to comment.