-
-
Notifications
You must be signed in to change notification settings - Fork 33k
Closed
Description
- Version: 13.6.0
- Platform: Ubuntu
- Subsystem:
It seems with Node 13(.6.0) error codes are numeric now which produces failing snapshot tests and assertions.
Before Node 13: EPROTO
Starting with Node 13: -71
Is there some information about this or was this just a bug and is this already fixed?
expect(received).toEqual(expected) // deep equality
- Expected
+ Received
Object {
- "error": "EPROTO",
+ "error": -71,
"id": null,
}
130 | });
131 | client.on('error', (err) => {
> 132 | expect(err).toEqual({ id: null, error: 'EPROTO' });
| ^
133 | done();
134 | });
135 | client.Authentication.login(USER.email, USER.password, null);
at Client.<anonymous> (tests/authentication/authentication.test.js:132:29)
at Authentication.callback (dist/bundle.cjs.js:164:29)
at Request._callback (dist/bundle.cjs.js:100:28)
at self.callback (node_modules/request/request.js:185:22)
at Request.Object.<anonymous>.Request.onRequestError (node_modules/request/request.js:881:8)
Metadata
Metadata
Assignees
Labels
No labels