Fix for Issue #1866
https://github.com/javascript-tutorial/en.javascript.info/issues/1866
This commit is contained in:
parent
69e44506c3
commit
ad0a5b32c0
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
||||||
describe("test", function() {
|
describe("test", function() {
|
||||||
|
|
||||||
|
// Mocha usually waits for the tests for 2 seconds before considering them wrong
|
||||||
|
|
||||||
|
this.timeout(200000); // With this code we increase this - in this case to 200,000 milliseconds
|
||||||
|
|
||||||
|
// This is because of the "alert" function, because if you delay pressing the "OK" button the tests will not pass!
|
||||||
|
|
||||||
before(() => alert("Testing started – before all tests"));
|
before(() => alert("Testing started – before all tests"));
|
||||||
after(() => alert("Testing finished – after all tests"));
|
after(() => alert("Testing finished – after all tests"));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue