javascript - Using asunc with asynchronous functions for unit tests -


i'm trying setup unit tests way using mocha. but, doesn't log thing, when remove ̀ settimeout`.

http://pastebin.com/ypwl6tvc

here's mocha's output:

enter image description here

what's wrong please?

you haven't define callback done. line 41 of pastebin should have callback parameter @ end. having said that, using mocha's callback functionality might better idea you, instead of using async.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -