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; }