From 730da2907cda6d2e672a1a64b6827515a6403101 Mon Sep 17 00:00:00 2001 From: euguuu Date: Thu, 12 Oct 2023 20:09:07 +0200 Subject: [PATCH] fix test after merge --- server/test/lib/device/device.destroyByServiceId.test.js | 2 +- server/test/lib/device/device.setParam.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/test/lib/device/device.destroyByServiceId.test.js b/server/test/lib/device/device.destroyByServiceId.test.js index 0ac42e2e0b..a76c41d761 100644 --- a/server/test/lib/device/device.destroyByServiceId.test.js +++ b/server/test/lib/device/device.destroyByServiceId.test.js @@ -44,7 +44,7 @@ describe('Device', () => { it('should destroy device', async () => { const serviceManager = new ServiceManager({}, stateManager); - const device = new Device(event, {}, stateManager, serviceManager, {}, {}, job); + const device = new Device(event, {}, stateManager, serviceManager, {}, { getValue: () => undefined }, job); await device.create({ name: 'test-device-destroyByServiceId', external_id: 'test-device-new-destroyByServiceId', diff --git a/server/test/lib/device/device.setParam.test.js b/server/test/lib/device/device.setParam.test.js index 9fc728405a..3b236fa5ee 100644 --- a/server/test/lib/device/device.setParam.test.js +++ b/server/test/lib/device/device.setParam.test.js @@ -13,7 +13,7 @@ describe('Device', () => { const stateManager = new StateManager(event); const serviceManager = new ServiceManager({}, stateManager); - const device = new Device(event, {}, stateManager, serviceManager, {}, {}, job); + const device = new Device(event, {}, stateManager, serviceManager, {}, { getValue: () => undefined }, job); let testDevice = await device.get({ search: 'test' }); await device.setParam(testDevice[0], 'testParamName', 'testParamValue'); await device.setParam(testDevice[0], 'testParamName2', 'testParamValue2');