about summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/t0105-commit.sh6
-rwxr-xr-xtests/t0106-diff.sh4
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/t0105-commit.sh b/tests/t0105-commit.sh index 1a12ee3..cfed1e7 100755 --- a/tests/t0105-commit.sh +++ b/tests/t0105-commit.sh
@@ -11,7 +11,7 @@ test_expect_success 'find commit subject' '
11 grep "<div class=.commit-subject.>commit 5<" tmp 11 grep "<div class=.commit-subject.>commit 5<" tmp
12' 12'
13 13
14test_expect_success 'find commit msg' 'grep "<div class=.commit-msg.></div>" tmp' 14test_expect_success 'find commit msg' 'grep "<pre class=.commit-msg.></pre>" tmp'
15test_expect_success 'find diffstat' 'grep "<table summary=.diffstat. class=.diffstat.>" tmp' 15test_expect_success 'find diffstat' 'grep "<table summary=.diffstat. class=.diffstat.>" tmp'
16 16
17test_expect_success 'find diff summary' ' 17test_expect_success 'find diff summary' '
@@ -29,8 +29,8 @@ test_expect_success 'root commit contains diffstat' '
29' 29'
30 30
31test_expect_success 'root commit contains diff' ' 31test_expect_success 'root commit contains diff' '
32 grep ">diff --git a/file-1 b/file-1<" tmp && 32 grep ">diff --git a/file-1 b/file-1" tmp &&
33 grep "<div class=.add.>+1</div>" tmp 33 grep "<span class=.add.>+1</span>" tmp
34' 34'
35 35
36test_done 36test_done
diff --git a/tests/t0106-diff.sh b/tests/t0106-diff.sh index 82b645e..62a0a74 100755 --- a/tests/t0106-diff.sh +++ b/tests/t0106-diff.sh
@@ -9,11 +9,11 @@ test_expect_success 'find blob link' 'grep "<a href=./foo/tree/file-5?id=" tmp'
9test_expect_success 'find added file' 'grep "new file mode 100644" tmp' 9test_expect_success 'find added file' 'grep "new file mode 100644" tmp'
10 10
11test_expect_success 'find hunk header' ' 11test_expect_success 'find hunk header' '
12 grep "<div class=.hunk.>@@ -0,0 +1 @@</div>" tmp 12 grep "<span class=.hunk.>@@ -0,0 +1 @@</span>" tmp
13' 13'
14 14
15test_expect_success 'find added line' ' 15test_expect_success 'find added line' '
16 grep "<div class=.add.>+5</div>" tmp 16 grep "<span class=.add.>+5</span>" tmp
17' 17'
18 18
19test_done 19test_done