t.throw(function () { qr = QRCode.create(new Array(Version.getCapacity(40, ECLevel.H) + 2).join('a'), { version: 40, errorCorrectionLevel: ECLevel.H }) }, 'Should throw if data cannot be contained in a qr code')
t.throw(function () { qr = QRCode.create(new Array(Version.getCapacity(2, ECLevel.H)).join('a'), { version: 1, errorCorrectionLevel: ECLevel.H }) }, 'Should throw if data cannot be contained with chosen version')