2020-08-06 02:44:17 +08:00
|
|
|
const VirtualizedList = require('./virtualizedlist/virtualize');
|
|
|
|
|
|
|
|
const virtualizedListTest = () => {
|
2020-08-14 10:41:14 +08:00
|
|
|
test('Virtualized Users List', async () => {
|
2020-08-06 02:44:17 +08:00
|
|
|
const test = new VirtualizedList();
|
|
|
|
let response;
|
|
|
|
try {
|
|
|
|
await test.init();
|
|
|
|
response = await test.test();
|
|
|
|
} catch (e) {
|
|
|
|
console.log(e);
|
|
|
|
} finally {
|
|
|
|
await test.close();
|
|
|
|
}
|
|
|
|
expect(response).toBe(true);
|
|
|
|
}, parseInt(process.env.TEST_DURATION_TIME));
|
|
|
|
};
|
|
|
|
module.exports = exports = virtualizedListTest;
|