Skip to content

Commit e90dd5b

Browse files
committed
add test for #131
When diff starts in the first three lines Closes #120
1 parent 506d301 commit e90dd5b

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
commit fbf440dd9c32a60f9bc97693a6bd7b5ca87ec9fc
2+
Author: Steve Mao <[email protected]>
3+
Date: Wed Mar 9 19:21:27 2016 +1100
4+
5+
0.6.2
6+
7+
diff --git package.json package.json
8+
index 7379c98..3cba6ee 100644
9+
--- package.json
10+
+++ package.json
11+
@@ -1,6 +1,6 @@
12+
{
13+
"name": "diff-so-fancy",
14+
- "version": "0.6.1",
15+
+ "version": "0.6.2",
16+
"description": "Good-lookin' diffs with diff-highlight and more",
17+
"bin": {
18+
"diff-so-fancy": "diff-so-fancy",

test/header_clean.bats

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ output=$( load_fixture "file-moves" | $diff_so_fancy )
6363
refute_output --partial 'Use of uninitialized value'
6464
}
6565

66+
@test "Hunk formatting: @@ -1,6 +1,6 @@" {
67+
# stderr forced into output
68+
output=$( load_fixture "first-three-line" | $diff_so_fancy )
69+
assert_output --partial '@ package.json:3 @'
70+
}
71+
6672
@test "mnemonicprefix handling" {
6773
output=$( load_fixture "mnemonicprefix" | $diff_so_fancy )
6874
assert_output --partial 'modified: test/header_clean.bats'

0 commit comments

Comments
 (0)