-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Description
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
Metadata
Metadata
Assignees
Labels
No labels