mirror of
https://github.com/skydiver/ewelink-api.git
synced 2026-01-04 03:54:59 +01:00
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:
5
test/_setup/credentials.json
Normal file
5
test/_setup/credentials.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"email": "<your ewelink email>",
|
||||
"password": "<your ewelink password>",
|
||||
"deviceId": "<your device id>"
|
||||
}
|
||||
28
test/_setup/expectations.js
Normal file
28
test/_setup/expectations.js
Normal 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,
|
||||
};
|
||||
Reference in New Issue
Block a user