-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
47 lines (37 loc) · 1.07 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//(Interface Testing)=====================================
//const Interface = require('./lib/Interface');
//const interface = new Interface();
//Employee portal test data
//
// const roleObj = {
// title: 'Paralegal',
// salary: '40000.00',
// department_id: '2'
// }
// const employeeObj = {
// first_name: 'Jake',
// last_name: 'Frazer',
// role_id: '4',
// manager_id: '2'
// }
// const updateRoleObj = {
// id: '6',
// role_id: '7'
// }
//interface.printMenuHeading('Employee Portal');
//interface.allDepartments();
//interface.allRoles();
//interface.allEmployees();
//interface.addDepartment('Research');
// interface.addRole(roleObj);
//interface.addEmployee(employeeObj);
//interface.updateRole(updateRoleObj);
//(Interface Testing)=====================================
const CommandLinePrompts = require('./lib/CLI');
const artwork = require('ascii-art');
const employeePortal = new CommandLinePrompts;
artwork.font("Employee Portal", 'doom')
.then((heading) => {
console.log(heading);
employeePortal.optionMenu();
});