Tundzhay Mollov 2020-05-31 19:47:55 +03:00 committed by GitHub
parent 69e44506c3
commit ad0a5b32c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"));