diff --git a/src/lib/still-camera.test.ts b/src/lib/still-camera.test.ts index 6fa8bed..9485e6a 100644 --- a/src/lib/still-camera.test.ts +++ b/src/lib/still-camera.test.ts @@ -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); }); diff --git a/src/lib/stream-camera.test.ts b/src/lib/stream-camera.test.ts index ab65c2f..22f1b6c 100644 --- a/src/lib/stream-camera.test.ts +++ b/src/lib/stream-camera.test.ts @@ -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 () => {