2018-11-23 20:55:16 +08:00
|
|
|
const Page = require('./core/page');
|
|
|
|
const Status = require('./user/status');
|
2020-02-08 02:03:06 +08:00
|
|
|
const MultiUsers = require('./user/multiusers');
|
2018-11-23 20:55:16 +08:00
|
|
|
|
|
|
|
describe('User', () => {
|
2020-02-14 04:00:33 +08:00
|
|
|
test('Change status', async () => {
|
|
|
|
const test = new Status();
|
|
|
|
let response;
|
|
|
|
try {
|
2020-02-19 02:52:07 +08:00
|
|
|
await test.init(Page.getArgs());
|
2020-02-14 04:00:33 +08:00
|
|
|
response = await test.test();
|
|
|
|
} catch (e) {
|
|
|
|
console.log(e);
|
|
|
|
} finally {
|
|
|
|
await test.close();
|
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
|
|
|
});
|
2020-02-08 02:03:06 +08:00
|
|
|
|
2020-02-11 06:09:17 +08:00
|
|
|
test('Multi user presence check', async () => {
|
2020-02-08 02:03:06 +08:00
|
|
|
const test = new MultiUsers();
|
|
|
|
let response;
|
|
|
|
try {
|
2020-02-13 21:32:03 +08:00
|
|
|
await test.init();
|
2020-02-13 04:18:41 +08:00
|
|
|
response = await test.test();
|
2020-02-08 02:03:06 +08:00
|
|
|
} catch (err) {
|
|
|
|
console.log(err);
|
|
|
|
} finally {
|
|
|
|
await test.close();
|
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
2020-02-15 04:52:59 +08:00
|
|
|
});
|
2018-11-23 20:55:16 +08:00
|
|
|
});
|