We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41e11da commit 32b5361Copy full SHA for 32b5361
1 file changed
packages/utils/src/diff.ts
@@ -35,6 +35,9 @@ export function unifiedDiff(actual: unknown, expected: unknown, options: DiffOpt
35
counts['-']++
36
})
37
38
+ if (counts['+'] === 0 && counts['-'] === 0)
39
+ return ''
40
+
41
let legend = ''
42
43
if (showLegend) {
0 commit comments