From a367cab8c3d68349296af3d69ae7b2194bff5d0f Mon Sep 17 00:00:00 2001 From: Nathan Kellenicki Date: Fri, 5 Apr 2019 12:12:37 -0700 Subject: [PATCH] Initial pass at tests --- src/__tests__/pupremote.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/__tests__/pupremote.test.ts b/src/__tests__/pupremote.test.ts index d94989d..1609b6e 100644 --- a/src/__tests__/pupremote.test.ts +++ b/src/__tests__/pupremote.test.ts @@ -21,7 +21,7 @@ afterAll(async (done) => { }); -test("Set LED color to BLUE via discrete value", async (done) => { +test("Set LED color via discrete value", async (done) => { remote.setLEDColor(Consts.Color.BLUE); expect(await device.readFromOutbox()).toEqual(Buffer.from([0x0a, 0x00, 0x41, 0x34, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00])); expect(await device.readFromOutbox()).toEqual(Buffer.from([0x08, 0x00, 0x81, 0x34, 0x11, 0x51, 0x00, 0x03])); @@ -37,7 +37,7 @@ test("Turn off LED", async (done) => { }); -test("Set LED color to 127, 32, 233 via RGB values", async (done) => { +test("Set LED color via RGB values", async (done) => { remote.setLEDRGB(127, 32, 233); expect(await device.readFromOutbox()).toEqual(Buffer.from([0x0a, 0x00, 0x41, 0x34, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00])); expect(await device.readFromOutbox()).toEqual(Buffer.from([0x0a, 0x00, 0x81, 0x34, 0x11, 0x51, 0x01, 0x7f, 0x20, 0xe9]));