mirror of
https://github.com/cloudreve/cloudreve.git
synced 2025-10-29 15:47:45 +08:00
Test: file compress / download
This commit is contained in:
@ -73,6 +73,8 @@ func TestFolder_GetChildFolder(t *testing.T) {
|
||||
Model: gorm.Model{
|
||||
ID: 1,
|
||||
},
|
||||
Position: "/123",
|
||||
Name: "456",
|
||||
}
|
||||
|
||||
// 找不到
|
||||
@ -87,6 +89,7 @@ func TestFolder_GetChildFolder(t *testing.T) {
|
||||
files, err = folder.GetChildFolder()
|
||||
asserts.NoError(err)
|
||||
asserts.Len(files, 2)
|
||||
asserts.Equal("/123/456", files[0].Position)
|
||||
asserts.NoError(mock.ExpectationsWereMet())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user