mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 11:41:32 +01:00 
			
		
		
		
	Fix test
This commit is contained in:
		
							parent
							
								
									b1b24282ae
								
							
						
					
					
						commit
						fe63c5fbc1
					
				| @ -127,7 +127,7 @@ type TreeEntry struct { | ||||
| 	Name     string       `json:"name"` | ||||
| 	IsFile   bool         `json:"isFile"` | ||||
| 	Path     string       `json:"path"` | ||||
| 	Children []*TreeEntry `json:"children, omitempty"` | ||||
| 	Children []*TreeEntry `json:"children,omitempty"` | ||||
| } | ||||
| 
 | ||||
| /* | ||||
|  | ||||
| @ -138,7 +138,7 @@ func Test_GetTreeInformation(t *testing.T) { | ||||
| 	assert.EqualValues(t, "doc", treeList[1].Name) | ||||
| 	assert.EqualValues(t, "doc", treeList[1].Path) | ||||
| 	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) | ||||
| 	assert.NoError(t, err) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user