Skip to content

Commit 36dcfde

Browse files
Add some tests for #469
1 parent 4958a1e commit 36dcfde

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

test/bugs.bats

+6
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,9 @@ teardown_file() {
7575
run printf "%s" "$output"
7676
assert_line --index 3 --partial "@ height"
7777
}
78+
79+
@test "ANSI Reset without the zero (#469)" {
80+
output=$( load_fixture "ansi_reset_no_number" | $diff_so_fancy )
81+
run printf "%s" "$output"
82+
assert_line --index 5 --partial "History"
83+
}
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
diff --git a/history.md b/history.md
2+
index f6776e0..a6b4546 100644
3+
--- a/history.md
4+
+++ b/history.md
5+
@@ -1,3 +1,3 @@
6+
-## History
7+
+## Historyz
8+

9+
`diff-so-fancy` started as [a commit in paulirish's dotfiles](https://github.com/paulirish/dotfiles/commit/6743b907ff586c28cd36e08d1e1c634e2968893e#commitcomment-13349456), which grew into a [standalone script](https://github.com/paulirish/dotfiles/blob/63cb8193b0e66cf80ab6332477f1f52c7fbb9311/bin/diff-so-fancy). Later, [@stevemao](https://github.com/stevemao) brought it into its [own repo](https://github.com/so-fancy/diff-so-fancy) (here), and gave it the room to mature. It's quickly grown into a [widely collaborative project](https://github.com/so-fancy/diff-so-fancy/graphs/contributors).

0 commit comments

Comments
 (0)