Release v1.2.1 (#6)

* tests refactored

* moved test config files

* removed deprecated command

* added missing test case

* updated eslint config

* removed unused function / renamed helper

* added missing test cases

* code enhancement
This commit is contained in:
Martin M
2019-07-20 12:43:05 -03:00
committed by GitHub
parent d6406deeec
commit 513c2f660a
13 changed files with 261 additions and 230 deletions

View File

@@ -0,0 +1,5 @@
{
"email": "<your ewelink email>",
"password": "<your ewelink password>",
"deviceId": "<your device id>"
}

View File

@@ -0,0 +1,28 @@
const loginExpectations = {
at: expect.any(String),
user: { email: expect.any(String) },
region: expect.any(String),
};
const allDevicesExpectations = {
name: expect.any(String),
deviceid: expect.any(String),
apikey: expect.any(String),
params: expect.any(Object),
showBrand: expect.any(Boolean),
uiid: expect.any(Number),
};
const specificDeviceExpectations = {
name: expect.any(String),
deviceid: expect.any(String),
apikey: expect.any(String),
online: expect.any(Boolean),
uiid: expect.any(Number),
};
module.exports = {
loginExpectations,
allDevicesExpectations,
specificDeviceExpectations,
};