Skip to content

Commit

Permalink
Revert some mock change
Browse files Browse the repository at this point in the history
  • Loading branch information
Kylmakalle committed Jan 23, 2022
1 parent b5e2aef commit 2bff2ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/accessory.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions test/mocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2bff2ec

Please sign in to comment.