Add tests for EntryType
This commit is contained in:
1 parent
30e028f001
commit
48e53fcac1
1 file changed
+6
@@ -10,3 +10,9 @@ func TestStatusText(t *testing.T) {
|
||||
assert.Equal(t, "Unknown status code: 0", StatusText(0))
|
||||
assert.Equal(t, "Invalid username or password.", StatusText(StatusInvalidCredentials))
|
||||
}
|
||||
|
||||
func TestEntryTypeString(t *testing.T) {
|
||||
assert.Equal(t, "file", EntryTypeFile.String())
|
||||
assert.Equal(t, "folder", EntryTypeFolder.String())
|
||||
assert.Equal(t, "link", EntryTypeLink.String())
|
||||
}
|
||||
Reference in new issue
Block a user