From 01d32cb2301f6db11f61bca113a2db8d86c7acc1 Mon Sep 17 00:00:00 2001 From: koenkk Date: Thu, 16 Nov 2023 21:55:07 +0100 Subject: [PATCH] fix(ignore): Fix color_temp_percent test --- test/publish.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/publish.test.js b/test/publish.test.js index a6287d6d..e38cc8c9 100644 --- a/test/publish.test.js +++ b/test/publish.test.js @@ -145,7 +145,7 @@ describe('Publish', () => { it('Should publish messages to zigbee devices with color_temp in %', async () => { const device = zigbeeHerdsman.devices.bulb_color; const endpoint = device.getEndpoint(1); - await MQTT.events.message('zigbee2mqtt/bulb_color/set', stringify({color_temp_percent: '100'})); + await MQTT.events.message('zigbee2mqtt/bulb_color/set', stringify({color_temp_percent: 100})); await flushPromises(); expect(endpoint.command).toHaveBeenCalledTimes(1); expect(endpoint.command).toHaveBeenCalledWith("lightingColorCtrl", "moveToColorTemp", {colortemp: 500, transtime: 0}, {}); @@ -1407,7 +1407,7 @@ describe('Publish', () => { expect(MQTT.publish.mock.calls[3]).toEqual([ 'zigbee2mqtt/bulb_color', stringify({"state":"ON","brightness":150}), { qos: 0, retain: false }, expect.any(Function)]); }); - it('Scenes', async () => { + it('onlythis Scenes', async () => { const bulb_color_2 = zigbeeHerdsman.devices.bulb_color_2.getEndpoint(1); const bulb_2 = zigbeeHerdsman.devices.bulb_2.getEndpoint(1); const group = zigbeeHerdsman.groups.group_tradfri_remote; @@ -1432,6 +1432,7 @@ describe('Publish', () => { await flushPromises(); expect(group.command).toHaveBeenCalledTimes(1); expect(group.command).toHaveBeenCalledWith('genScenes', 'recall', { groupid: 15071, sceneid: 1 }, {}); + console.log(logger.error.mock.calls); expect(MQTT.publish).toHaveBeenCalledTimes(8); expect(MQTT.publish).toHaveBeenNthCalledWith(1, 'zigbee2mqtt/group_tradfri_remote',