From 3a46fea08b3d2e7859dec536b572ddc2b526efeb Mon Sep 17 00:00:00 2001 From: Greg Richardson Date: Sat, 12 Dec 2020 19:52:21 -0700 Subject: [PATCH] fix: jpeg signature tests --- src/lib/still-camera.test.ts | 2 +- src/lib/stream-camera.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 () => {