Closed
Description
openedon Sep 2, 2016
With Node 4 unittests fail:
- Suite .beforeAll() wraps the passed in function in a Hook adds it to _beforeAll:
- Suite .afterAll() wraps the passed in function in a Hook adds it to _afterAll:
- Suite .beforeEach() wraps the passed in function in a Hook adds it to _beforeEach:
- Suite .afterEach() wraps the passed in function in a Hook adds it to _afterEach:
All have a similar Error:
AssertionError: expected '"before all" hook: fn' to be '"before all" hook'
Reason:
In node 6.5.0 anomynous functions have a name when assigned to a variable:
var myFunc = function(){};
console.log(myFunc.name); // -> 'myFunc'
Prior to node 6.5.0 the function name would be empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels