Sfoglia il codice sorgente

Merge pull request #2370 from andreynering/fix-tests

Fix test case after 86bce4a2ae9915fad63c742cb68fcd0a5e64a223.
Unknwon 8 anni fa
parent
commit
e2f0587ca3
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      models/git_diff_test.go

+ 3 - 3
models/git_diff_test.go

@@ -18,15 +18,15 @@ func assertLineEqual(t *testing.T, d1 *DiffLine, d2 *DiffLine) {
   }
 }
 
-func TestDiffToHtml(t *testing.T) {
-  assertEqual(t, "foo <span class=\"added-code\">bar</span> biz", diffToHtml([]dmp.Diff{
+func TestDiffToHTML(t *testing.T) {
+  assertEqual(t, "foo <span class=\"added-code\">bar</span> biz", diffToHTML([]dmp.Diff{
     dmp.Diff{dmp.DiffEqual, "foo "},
     dmp.Diff{dmp.DiffInsert, "bar"},
     dmp.Diff{dmp.DiffDelete, " baz"},
     dmp.Diff{dmp.DiffEqual, " biz"},
   }, DIFF_LINE_ADD))
 
-  assertEqual(t, "foo <span class=\"removed-code\">bar</span> biz", diffToHtml([]dmp.Diff{
+  assertEqual(t, "foo <span class=\"removed-code\">bar</span> biz", diffToHTML([]dmp.Diff{
     dmp.Diff{dmp.DiffEqual, "foo "},
     dmp.Diff{dmp.DiffDelete, "bar"},
     dmp.Diff{dmp.DiffInsert, " baz"},