-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
42 lines (36 loc) · 788 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
32
33
34
35
36
37
38
39
40
41
42
function setUp() {
// any setup needed for each test
}
function tearDown() {
// any cleanup needed for each test
}
// Remembers a package dependency -- a depends on b
// All depend() calls happen before all other function calls
function depend(a, ...b) {
console.log(`DEPEND ${a} ${b}`);
// TODO unimplemented
}
// Installs 'a' and all its dependencies
function install(a) {
console.log(`INSTALL ${a}`);
// TODO unimplemented
}
// Removes 'a' and all its dependencies
function remove(a) {
console.log(`REMOVE ${a}`);
// TODO unimplemented
}
// Returns an array of all installed packages
function list() {
console.log(`LIST`);
// TODO unimplemented
return ["first", "second"];
}
module.exports = {
setUp,
tearDown,
depend,
install,
remove,
list,
};