This commit is contained in:
Homsek
2023-11-10 09:39:29 +03:00
parent 3e1c549cbc
commit 49f06c2f53
3 changed files with 54 additions and 0 deletions

12
MOCHA/operations.js Normal file
View File

@@ -0,0 +1,12 @@
module.exports.multiply = function (x, y) {
return x * y;
};
module.exports.add = function (x, y) {
return x + y;
};
module.exports.multiplyAsync = function (a, b, callback) {
setTimeout(function () {
callback(a * b);
}, 1000);
};