Open KimJinBoo opened 5 years ago
for (let prefix in MaestroArray) {
for (let addStr = 8; addStr <= 15; addStr++) {
let finalPrefix = MaestroArray[prefix]
it('has a prefix of ' + MaestroArray[prefix] + ' and a length of ' + (addStr + 4), function () {
expect(detectNetwork(finalPrefix + '0'.repeat(addStr))).to.equal("Maestro")
})
}
}
for (let Larr in newLarr) {
for (let Parr in newParr) {
let addStr = newLarr[Larr] - newParr[Parr].toString().length
it('has a prefix of ' + newParr[Parr] + ' and a legnth of ' + newLarr[Larr], function () {
expect(detectNetwork(newParr[Parr] + '0'.repeat(addStr))).to.equal('China UnionPay')
})
}
}