Files
ewelink-api/test/_setup/expectations.js
Martin M 513c2f660a 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
2019-07-20 12:43:05 -03:00

29 lines
635 B
JavaScript

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