You get the error you are getting because your top level before
hook takes more than the default 2000ms timeout delay to run. In case you did not know: before
means "execute this before all tests in this suite" and this is why the error message talks of a "before all" hook.
It works when you do $ mocha -b -R spec -s 1000 -t 3000
because you've increased the timeout to 3000ms. The code in your before hook takes between 2 and 3 seconds to run. You could make this setting permanent by putting it inside test/mocha.opts
.
I've been trying to push a complex json data record into a json variable. This is the code I tried to do so. var marks=[]; var studentData="student1":[{ "term1":[ {"LifeSkills":[{...
I've been trying to push a complex json data record into a json variable. This is the code I tried to do so. var marks=[]; var studentData="student1":[{ "term1":[ {"LifeSkills":[{...
Can I center the content of div with center-block?? The following example does not work: <div class="form-group"> <div class="center-block"> <input id="...
Can I center the content of div with center-block?? The following example does not work: <div class="form-group"> <div class="center-block"> <input id="...
I have the following array: var data= [{ "Id": 1, "Name": "NameOne"} { "Id": 2, "Name": "NameTwo"} { "Id": 2, "Name": "NameTwo"}] { "Id": 3, "Name": "NameThree"}] ...
I have the following array: var data= [{ "Id": 1, "Name": "NameOne"} { "Id": 2, "Name": "NameTwo"} { "Id": 2, "Name": "NameTwo"}] { "Id": 3, "Name": "NameThree"}] ...
I just discovered a weird issue with Angular 1.2.1, demonstrated in this fiddle (tested in both IE, FF, and Chrome): if I create a very simple templated directive, it fails to work as <my-element /&...
I just discovered a weird issue with Angular 1.2.1, demonstrated in this fiddle (tested in both IE, FF, and Chrome): if I create a very simple templated directive, it fails to work as <my-element /&...