Created
November 18, 2015 11:36
-
-
Save yannispanousis/c4191bbaf02c9e5d7fed to your computer and use it in GitHub Desktop.
JavaScript Mocha 'this.currentTest' object inside hooks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Should allow me to log out", | |
"async": 0, | |
"sync": true, | |
"timedOut": false, | |
"pending": false, | |
"type": "test", | |
"file": "/home/yannis/git/lystable-frontend/e2e-test/team/auth-test.js", | |
"parent": "#<Suite>", | |
"ctx": "#<Context>", | |
"timer": { | |
"0": null | |
}, | |
"duration": 2996, | |
"state": "passed" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First, how do you get to print this.currentTest, when i try to print this inside a test, it says undefined.
Also can you tell me why is the async = 0, and sync true?
Thank you.