summaryrefslogtreecommitdiffstats
path: root/api/file_test.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-08-24 15:03:52 -0700
committer=Corey Hulen <corey@hulen.com>2015-08-24 15:03:52 -0700
commit64b179ab0e6a66c0f8edb72ab24ef28bbc2f9969 (patch)
tree3094d69abb3e9bd32a14587c8d787c9ad8f0b688 /api/file_test.go
parent930488f002c819efed7e3afc982b73d1c06a9bbe (diff)
downloadchat-64b179ab0e6a66c0f8edb72ab24ef28bbc2f9969.tar.gz
chat-64b179ab0e6a66c0f8edb72ab24ef28bbc2f9969.tar.bz2
chat-64b179ab0e6a66c0f8edb72ab24ef28bbc2f9969.zip
Fixes mm-1912 move get file info into its own web service call
Diffstat (limited to 'api/file_test.go')
-rw-r--r--api/file_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/api/file_test.go b/api/file_test.go
index 566fd69d0..eb1fcf2ce 100644
--- a/api/file_test.go
+++ b/api/file_test.go
@@ -201,6 +201,15 @@ func TestGetFile(t *testing.T) {
t.Fatal(downErr)
}
+ if resp, downErr := Client.GetFileInfo(filenames[0]); downErr != nil {
+ t.Fatal(downErr)
+ } else {
+ m := resp.Data.(map[string]string)
+ if len(m["size"]) == 0 {
+ t.Fail()
+ }
+ }
+
team2 := &model.Team{DisplayName: "Name", Name: "z-z-" + model.NewId() + "a", Email: "test@nowhere.com", Type: model.TEAM_OPEN}
team2 = Client.Must(Client.CreateTeam(team2)).Data.(*model.Team)