Skip to content

Commit

Permalink
bump esbuild, eslint and jest packages. fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanNedelchev committed Aug 22, 2023
1 parent f422af7 commit f8d5f2d
Show file tree
Hide file tree
Showing 3 changed files with 676 additions and 579 deletions.
6 changes: 4 additions & 2 deletions __tests__/BarcodeDetector.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ describe('BarcodeDetector', () => {

beforeEach(() => {
acceptedFormats = [];
scanOneResultSpy = jest.spyOn(BrowserMultiFormatReader.prototype, 'scanOneResult');
decodeFromCanvasSpy = jest.spyOn(BrowserMultiFormatReader.prototype, 'decodeFromCanvas');
scanOneResultSpy = jest.spyOn(BrowserMultiFormatReader.prototype, 'scanOneResult')
.mockResolvedValue(new Result('12345', new Uint8Array(), 5, [], BarcodeFormat.CODE_39));
decodeFromCanvasSpy = jest.spyOn(BrowserMultiFormatReader.prototype, 'decodeFromCanvas')
.mockReturnValue(new Result('12345', new Uint8Array(), 5, [], BarcodeFormat.CODE_39));
});

it('should be created', () => {
Expand Down
Loading

0 comments on commit f8d5f2d

Please sign in to comment.