Skip to content

Commit

Permalink
fix: jpeg signature tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnr committed Dec 13, 2020
1 parent 4398219 commit 3a46fea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/still-camera.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ test('takeImage() returns JPEG', async () => {

const jpegImage = await stillCamera.takeImage();

expect(jpegImage.indexOf(await StillCamera.getJpegSignature())).toBe(0);
expect(jpegImage.indexOf(StillCamera.jpegSignature)).toBe(0);
});
2 changes: 1 addition & 1 deletion src/lib/stream-camera.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test('Method takeImage() grabs JPEG from MJPEG stream', async () => {

await streamCamera.stopCapture();

expect(jpegImage.indexOf(await StreamCamera.getJpegSignature())).toBe(0);
expect(jpegImage.indexOf(StreamCamera.jpegSignature)).toBe(0);
});

test('Method createStream() returns a stream of video data', async () => {
Expand Down

0 comments on commit 3a46fea

Please sign in to comment.