Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
werthdavid committed Apr 19, 2023
1 parent d952c94 commit 99a8e0c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/core/oned/CodaBarReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export default class CodaBarReader extends OneDReader {
wnwnwnn: '.',
nnwwwww: '+',
nnwwnwn: 'A',
nnnwnww: 'B',
nwnwnnw: 'C',
nwnwnnw: 'B',
nnnwnww: 'C',
nnnwwwn: 'D'
};

Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,4 @@ export { default as RSSExpandedReader } from './core/oned/rss/expanded/RSSExpand
export { default as AbstractExpandedDecoder } from './core/oned/rss/expanded/decoders/AbstractExpandedDecoder';
export { createDecoder as createAbstractExpandedDecoder } from './core/oned/rss/expanded/decoders/AbstractExpandedDecoderComplement';
export { default as MultiFormatOneDReader } from './core/oned/MultiFormatOneDReader';
export { default as CodaBarReader } from './core/oned/CodaBarReader';
15 changes: 7 additions & 8 deletions src/test/core/oned/CodaBarBlackBox1.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,23 @@

// package com.google.zxing.oned;

import BarcodeFormat from '../../../core/BarcodeFormat';
import MultiFormatReader from '../../../core/MultiFormatReader';
import AbstractBlackBoxSpec from '../common/AbstractBlackBox';
import { BarcodeFormat, CodaBarReader } from '@zxing/library';
import AbstractBlackBoxSpec from './../common/AbstractBlackBox';

/**
* @author Evan @dodobelieve
*/
class CodaBarBlackBox1Spec extends AbstractBlackBoxSpec {
public constructor() {
super('src/test/resources/blackbox/codabar-1', new MultiFormatReader(), BarcodeFormat.CODABAR);
super('src/test/resources/blackbox/codabar-1', new CodaBarReader(), BarcodeFormat.CODABAR);
this.addTest(6, 6, 0.0);
this.addTest(6, 6, 180.0);
}
}

describe('CodaBarBlackBox.1', () => {
it('testBlackBox', done => {
const test = new CodaBarBlackBox1Spec();
return test.testBlackBox(done);
});
it('testBlackBox', async () => {
const test = new CodaBarBlackBox1Spec();
await test.testBlackBox();
});
});

0 comments on commit 99a8e0c

Please sign in to comment.