-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
31 lines (27 loc) · 888 Bytes
/
index.js
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
const q1 = require('./interview-question/q1');
const q2 = require('./interview-question/q2');
const appMetadataService = require('./mock-service/appMetadataService');
// This file is to help you run some quick integration test if needed.
// You should check your code by running unit test `npm run test`
// You are NOT required to use this file, but feel free to use it for trouble shooting if needed.
q1.getAllApplicationNamesGroupedByTeam()
.then((data) => {
console.log(data);
})
.catch((err) => {
console.error(err);
});
q2.getAllApplicationNamesGroupedByTeamWithPagination()
.then((data) => {
console.log(JSON.stringify(data, null, 2));
})
.catch((err) => {
console.error(err);
});
appMetadataService.getAllApplicationMetadataWithPagination(10, 10)
.then((data) => {
console.log(data);
})
.catch((err) => {
console.error(err);
});