Нужна ваша помощь, пожалуйста, скажите мне, что мне здесь не хватает?Почему я получил эту ошибку?
var testCase = require('mocha').describe;
var pre = require('mocha').before;
var assertions = require('mocha').it;
var assert = require('mocha').assert;
testCase('Array', function() {
pre(function() {
// ...
});
testCase('#indexOf()', function() {
assertions('should return -1 when not present', function() {
assert.equal([1,2,3].indexOf(4), -1);
});
});
});

{
"name": "couponsystem",
"version": "1.0.0",
"description": "electron desktop project",
"main": "src/index.js",
"scripts": {
"test": "node src/tests/tests.js"
},
"dependencies": {},
"devDependencies": {
"chai": "^4.2.0",
"mocha": "^5.2.0"
},
"author": "maks burkov",
"license": "ISC"
}
TypeError: testCase не является функцией в Object.(E: \ JavaScriptProjects \ couponsystem \ src \ tests \ tests.js: 6: 1) в модуле Module._compile (внутренний / modules / cjs / loader.js: 688: 30) в Object.Module._extensions..js (внутренний/modules/cjs/loader.js:699:10) в Module.load (внутренний / modules / cjs / loader.js: 598: 32) в tryModuleLoad (внутренний / modules / cjs / loader.js: 537: 12) вFunction.Module._load (внутренний / modules / cjs / loader.js: 529: 3) в Function.Module.runMain (внутренний / modules / cjs / loader.js: 741: 12) при запуске (внутренний / bootstrap / узел.js: 285: 19) в bootstrapNodeJSCore (внутренняя / bootstrap / node.js: 739: 3) npm ERR!Тест не пройденПодробнее см. Выше.