import { BarcodeFormat } from '@zxing/library' ; import { MultiFormatReader } from '@zxing/library' ; import AbstractBlackBoxSpec from '../common/AbstractBlackBox' ; import { TextDecoder } from '@zxing/text-encoding' ; import { ZXingStringEncoding } from '@zxing/library' ; ZXingStringEncoding . customDecoder = ( b , e ) => new TextDecoder ( e ) . decode ( b ) ; author dswitkin google class PDF417BlackBox2Spec extends AbstractBlackBoxSpec { public constructor ( ) { super ( 'src/test/resources/blackbox/pdf417-2' , new MultiFormatReader ( ) , BarcodeFormat . PDF_417 ) ; this . addTestWithMax ( 25 , 25 , 0 , 0 , 0.0 ) ; this . addTestWithMax ( 25 , 25 , 0 , 0 , 180.0 ) ; } } describe ( 'PDF417BlackBox.2' , ( ) => { it ( 'testBlackBox' , async ( ) => { const test = new PDF417BlackBox2Spec ( ) ; await test . testBlackBox ( ) ; } ) ; } ) ;