This commit is contained in:
Lunny Xiao 2025-01-02 22:32:33 -08:00
parent b1b24282ae
commit fe63c5fbc1
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
2 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ func Test_GetTreeInformation(t *testing.T) {
assert.EqualValues(t, "doc", treeList[1].Name) assert.EqualValues(t, "doc", treeList[1].Name)
assert.EqualValues(t, "doc", treeList[1].Path) assert.EqualValues(t, "doc", treeList[1].Path)
assert.False(t, treeList[1].IsFile) assert.False(t, treeList[1].IsFile)
assert.Len(t, treeList[1].Children, 0) assert.Empty(t, treeList[1].Children)
treeList, err = GetTreeInformation(ctx2, ctx2.Repo.Repository, "doc", refName) treeList, err = GetTreeInformation(ctx2, ctx2.Repo.Repository, "doc", refName)
assert.NoError(t, err) assert.NoError(t, err)