194: Added basic support for 2of5 barcodes; fixed integration-tests

This commit is contained in:
Christoph Oberhofer
2017-05-22 21:30:51 +02:00
parent f9a19e0a02
commit 06bcda3157
25 changed files with 328 additions and 21 deletions
-15
View File
@@ -153,21 +153,6 @@ describe("camera_access", () => {
done();
});
});
it("should set deviceId if facingMode is set to environment", (done) => {
setDevices([{deviceId: "front", kind: "videoinput", label: "front Facing"},
{deviceId: "back", label: "back Facing", kind: "videoinput"}]);
const givenConstraints = {width: 180, facingMode: "environment"};
return pickConstraints(givenConstraints).then((actualConstraints) => {
expect(actualConstraints.video).to.deep.equal({width: 180, deviceId: "back"});
done();
})
.catch((err) => {
console.log(err);
expect(err).to.equal(null);
done();
});
});
});
});
});