Skip to content

Commit 849118e

Browse files
committed
Add Maestro fixtures
1 parent 80a08db commit 849118e

File tree

2 files changed

+107
-2
lines changed

2 files changed

+107
-2
lines changed

test/fixtures/maestro.json

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
[
2+
502027541337210014,
3+
6762358882800094342,
4+
6759727141520,
5+
50382480225114492,
6+
630494939456722,
7+
6762344627111,
8+
676234558943443,
9+
676276833652893,
10+
67616907081437,
11+
6761173428256949202,
12+
6759952211292109,
13+
676185659178331,
14+
63048359908434,
15+
5018535756304964,
16+
5018787121305994089,
17+
676385920686084,
18+
502051930746,
19+
5020824829808294226,
20+
6304019929449847267,
21+
676191911822,
22+
501814349244,
23+
5018321871615,
24+
6763850779997198343,
25+
50203313556644802,
26+
67599429209197299,
27+
67593837250717458,
28+
50206805235431,
29+
6759328295678390,
30+
630465211447241,
31+
503878903546365,
32+
6759327622187308749,
33+
6759884573618072732,
34+
502069681778,
35+
676378824806,
36+
50386072153986,
37+
50180199881664,
38+
50184966346683654,
39+
675919690991999704,
40+
675913719444000,
41+
503877948818912,
42+
676207088615,
43+
5018918363466833886,
44+
50380161961779639,
45+
502021915550218654,
46+
676173599696869,
47+
503836019101756784,
48+
6762422905495181,
49+
5020557928029046606,
50+
6304899019174122,
51+
675954502539,
52+
5018606073118906,
53+
676227191225,
54+
67617198442502,
55+
6763693904795503,
56+
67621744018725,
57+
67616192187880786,
58+
6759801874059554,
59+
50183309029240,
60+
676125004660,
61+
50387242292842271,
62+
67597656893828,
63+
6763235861686915207,
64+
6763271547006040,
65+
67594457044115,
66+
503815335388003582,
67+
6304440975433473,
68+
67629140774202117,
69+
503861826335181,
70+
501814191015187,
71+
5038148251622546,
72+
6763849754995806969,
73+
676293931192815354,
74+
63044921460426,
75+
6763992771065184,
76+
630466901436452,
77+
6762284479472143116,
78+
67630476077213,
79+
5018666585932979182,
80+
6304055359020702,
81+
5038015681531860653,
82+
503808563823853,
83+
63045656812627945,
84+
6761522772628003,
85+
50189676141724,
86+
503896890459,
87+
67597349078079372,
88+
6759375548950,
89+
6762366812595098,
90+
67597647022169722,
91+
6304193639211476,
92+
501879647391,
93+
63041748610175,
94+
5020074006159,
95+
50386023406343,
96+
6763233853035138,
97+
50384326969561810,
98+
502047309748386,
99+
67633006740009692,
100+
63041344891195,
101+
5018493270581155165
102+
]

test/test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ test('match credit card numbers', function (t) {
1212
require('./fixtures/visa.json')
1313
).map(function (fixture) {
1414
return String(fixture.CreditCard.CardNumber);
15-
}).concat(require('./fixtures/jcb.json').map(function (fixture) {
15+
}).concat(
16+
require('./fixtures/jcb.json'),
17+
require('./fixtures/maestro.json')
18+
).map(function (fixture) {
1619
return String(fixture);
17-
}));
20+
});
1821

1922
fixtures.forEach(function (el) {
2023
if (!creditCardRegex().exec(el)) {

0 commit comments

Comments
 (0)