Skip to content

Commit be6fb4a

Browse files
committed
fix: missing exports and use wrong undefined sleep()
1 parent 2d41d26 commit be6fb4a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lab2/main.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class MailSystem {
1212
send(name, context) {
1313
console.log('--send mail to ' + name + '--');
1414
// Interact with mail system and send mail
15-
sleep(1000);
1615
// random success or failure
1716
const success = Math.random() > 0.5;
1817
if (success) {
@@ -74,4 +73,9 @@ class Application {
7473
// app.selectNextPerson();
7574
// app.selectNextPerson();
7675
// app.selectNextPerson();
77-
// app.notifySelected();
76+
// app.notifySelected();
77+
78+
module.exports = {
79+
Application,
80+
MailSystem,
81+
};

0 commit comments

Comments
 (0)