Skip to content

Commit 2d519df

Browse files
authored
Add test for highlight and last function (#445)
1 parent 0c87707 commit 2d519df

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

test/diff-so-fancy.bats

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,3 +247,10 @@ teardown_file() {
247247
assert_line --index 1 --partial "modified: doc/manual.xml.head"
248248
assert_line --index 3 --partial "@ doc/manual.xml.head:8355 @"
249249
}
250+
251+
@test "Functionnal part with bright color" {
252+
output=$( load_fixture "move_with_content_change" | $diff_so_fancy )
253+
run printf "%s" "$output"
254+
assert_line --index 3 --partial "@ height"
255+
}
256+

test/test_helper/util.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ setup_default_dsf_git_config() {
2626
old = red bold
2727
new = green bold
2828
whitespace = red reverse
29+
func = brightyellow
2930
3031
[color "diff-highlight"]
3132
oldNormal = red bold

0 commit comments

Comments
 (0)