From 2bff2ec2e9a4c3e73a99d27acb31c8442d874ab2 Mon Sep 17 00:00:00 2001 From: Sergey Date: Sun, 23 Jan 2022 19:57:49 +0300 Subject: [PATCH] Revert some mock change --- test/accessory.test.js | 2 +- test/mocks.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/accessory.test.js b/test/accessory.test.js index 620548c..ecd8216 100644 --- a/test/accessory.test.js +++ b/test/accessory.test.js @@ -598,7 +598,7 @@ describe("accessory", () => { fakeGatoEnabled: true, }); assert(accessory.fakeGatoHistoryService !== undefined); - assert.strictEqual(accessory.fakeGatoHistoryService.type, "room"); + assert.strictEqual(accessory.fakeGatoHistoryService.accessoryType, "room"); assert.strictEqual(accessory.fakeGatoHistoryService.accessory, accessory); assert.strictEqual( accessory.fakeGatoHistoryService.optionalParams.path, diff --git a/test/mocks.js b/test/mocks.js index eea521d..8990ada 100644 --- a/test/mocks.js +++ b/test/mocks.js @@ -54,8 +54,8 @@ class PeripheralMock { } class FakeGatoHistoryServiceMock { - constructor(type, accessory, optionalParams) { - this.type = type; + constructor(accessoryType, accessory, optionalParams) { + this.accessoryType = accessoryType; this.accessory = accessory; this.optionalParams = optionalParams; }