Closed
Description
Code:
expect(snapshotDiff("foo", "bar")).toMatchSnapshot();
Result:
Received value
Snapshot Diff:
null
It seems adding a new line to the end of both arguments results in a valid snapshot diff.
Code
expect(snapshotDiff("foo" + "\n", "bar" + "\n")).toMatchSnapshot();
Result
Received value
Snapshot Diff:
- First value
+ Second value
- foo
+ bar