From 48e53fcac1819eb6d355b0e7dbde127d0bf30339 Mon Sep 17 00:00:00 2001 From: Julien Laffaye Date: Tue, 8 Mar 2022 18:57:09 -0500 Subject: [PATCH] Add tests for EntryType --- status_test.go => constants_test.go | 6 ++++++ 1 file changed, 6 insertions(+) rename status_test.go => constants_test.go (57%) diff --git a/status_test.go b/constants_test.go similarity index 57% rename from status_test.go rename to constants_test.go index 8dead00..1f199d3 100644 --- a/status_test.go +++ b/constants_test.go @@ -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()) +}