-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Hi guys,
Please consider the following test case:
it.only('should whatever', () => {
const result$ = cold('-a--|', {
a: { prop: NaN }
});
const expectedResult$ = cold('-a--|', {
a: { prop: null }
});
expect(result$).toBeObservable(expectedResult$);
});
The 2 prop obviously differs, so the test case will fail.
Unfortunately, the difference is vanished from the output message, since during stringification of frames, NaN becomes null:

The differences should be highlighted as follows:

Could you please check?
Thanks,
Bence
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels