Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Test a note on the commit page
Diffstat (limited to 'tests/t0106-commit.sh')
| -rwxr-xr-x | tests/t0106-commit.sh | 8 |
1 file changed, 8 insertions, 0 deletions
diff --git a/tests/t0106-commit.sh b/tests/t0106-commit.sh index 6d08645..58e0de8 100755 --- a/tests/t0106-commit.sh +++ b/tests/t0106-commit.sh @@ -110,4 +110,12 @@ test_expect_success 'an octopus merge draws no diff and offers no diff options' test_grep "<table class=.diffstat.>" tmp ' +test_expect_success 'a note is shown below the message' ' + git -C repos/foo notes add -m "a note on five" master && + test_when_finished "git -C repos/foo notes remove master" && + cgit_ok_url "foo/commit" >tmp && + test_grep "<div class=.notes-header.>Notes</div>" tmp && + test_grep "<div class=.notes.>a note on five$" tmp +' + test_done |
