mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-03-11 02:16:52 +08:00
Test: pkg/task / Fix: failed test due to policy cache
This commit is contained in:
@@ -30,3 +30,10 @@ func TestCreatNestedFile(t *testing.T) {
|
||||
asserts.FileExists("test/direct.txt")
|
||||
}
|
||||
}
|
||||
|
||||
func TestIsEmpty(t *testing.T) {
|
||||
asserts := assert.New(t)
|
||||
|
||||
asserts.False(IsEmpty(""))
|
||||
asserts.False(IsEmpty("not_exist"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user