-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.ts
33 lines (30 loc) · 917 Bytes
/
test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import store from './dist/main';
// TODO: Use Jest for testing
async function test() {
const result = await Promise.all([
// store.app({ id: 6443843352 }), // Works
// store.app({ appId: 'com.haqq.wallet' }), // Works
// store.ratings({ id: 6443843352 }), // Works
// store.developer({ devId: 1649910836 }), // Works
// store.list({
// category: CATEGORY.FINANCE,
// num: 2,
// }), // Works
// store.list({
// category: CATEGORY.FINANCE,
// num: 2,
// fullDetail: true,
// }), // Works
// store.privacy({ id: 6443843352 }), // Works
// store.reviews({ id: 6443843352 }), // Works
// store.search({
// term: 'haqq',
// page: 1,
// num: 1,
// }), // Works,
// store.similar({ id: 6443843352 }), // Works
store.suggest({ term: 'haqq' }), // Works
]);
console.log(JSON.stringify(result, null, 2));
}
test();