Skip to content

Commit

Permalink
update tests slightly to match what is supposed to be happening now t…
Browse files Browse the repository at this point in the history
…hat #466 appears fixed
  • Loading branch information
ericblade committed Oct 25, 2023
1 parent c03e755 commit 6d9c308
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ericblade/quagga2",
"version": "1.8.3",
"version": "1.8.4",
"description": "An advanced barcode-scanner written in JavaScript",
"main": "lib/quagga.js",
"types": "type-definitions/quagga.d.ts",
Expand Down Expand Up @@ -137,7 +137,8 @@
"Ben Khoo <khoobks@gmail.com>",
"Andy Edinborough <andy@edinborough.org>",
"Claudio Cocciarelli <claudiococciarelli@gmail.com>",
"Hadrien Foucault <hadrien.foucault@gmail.com>"
"Hadrien Foucault <hadrien.foucault@gmail.com>",
"ghevge <ghevge@github.com>"
],
"license": "MIT",
"engines": {
Expand Down
5 changes: 3 additions & 2 deletions test/integration/integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ function runNoCodeTest(name: string, config: QuaggaJSConfigObject, testSet: Arra
src: `${typeof window !== 'undefined' ? '/' : ''}test/fixtures/${name}/${sample.name}`,
};
const result = await Quagga.decodeSingle(thisConfig);
expect(result).to.be.an('Array');
expect(result).to.be.empty;
expect(result).to.be.an('Object');
expect(result.barcodes).to.be.an('array');
expect(result.barcodes).to.be.empty;
// // console.warn(`* Expect result ${JSON.stringify(result)} to be an object`);
expect(Quagga.canvas).to.be.an('Object');
expect(Quagga.canvas.dom).to.be.an('Object');
Expand Down

0 comments on commit 6d9c308

Please sign in to comment.