Release v1.4.1 (#13)

* specific error when requested channel is bigger than total

* fix for multi-channel devices

* updated test expectations

* fixes with uiid api changes

* fix wrong error message

* added new test cases

* return expected error on wrong channel number

* added more devices

* version bump
This commit is contained in:
Martin M
2019-09-11 23:46:17 -03:00
committed by GitHub
parent 171faa617b
commit 024aaa8a2c
10 changed files with 190 additions and 52 deletions

View File

@@ -1,7 +1,8 @@
{
"email": "<your ewelink email>",
"password": "<your ewelink password>",
"deviceId": "<your device id>",
"singleChannelDeviceId": "<your device id>",
"deviceIdWithPower": "<your device id>",
"deviceIdWithoutPower": "<your device id>"
"deviceIdWithoutPower": "<your device id>",
"fourChannelsDevice": "<your device id>"
}

View File

@@ -10,7 +10,11 @@ const allDevicesExpectations = {
apikey: expect.any(String),
params: expect.any(Object),
showBrand: expect.any(Boolean),
uiid: expect.any(Number),
extra: {
extra: {
uiid: expect.any(Number),
},
},
};
const specificDeviceExpectations = {
@@ -18,7 +22,11 @@ const specificDeviceExpectations = {
deviceid: expect.any(String),
apikey: expect.any(String),
online: expect.any(Boolean),
uiid: expect.any(Number),
extra: {
extra: {
uiid: expect.any(Number),
},
},
};
const rawPowerUsageExpectations = {