You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the problem is, that my system converts that date other than expected, because I am in another timezone. I can fix this error by using the converted string for comparison:
When I run the tests on my Windows machine, I get the following error:
Expected '1348-04-06T23:06:32.000Z' to contain '1348-04-07'
. The relevant test isit('should return serialized Schools from provided Array of Schools')
(https://github.com/ghidoz/angular2-jsonapi/blob/master/projects/angular2-jsonapi/src/converters/json-model/json-model.converter.spec.ts#L139).I believe the problem is, that my system converts that date other than expected, because I am in another timezone. I can fix this error by using the converted string for comparison:
But I don't know if this the correct way to handle this error or if we could configure the test environment to set a specific timezone.
The text was updated successfully, but these errors were encountered: