mattermost-community/focalboard

API Integration Tests - ./api/api.go (Files API)

Open

#437 opened on May 17, 2021

View on GitHub
 (2 comments) (0 reactions) (0 assignees)TypeScript (26,187 stars) (2,542 forks)user submission
Good First IssueHacktoberfestHelp WantedUp for grabs

Description

Add integration tests for missing File API endpoints

files := r.PathPrefix("/files").Subrouter()
files.HandleFunc("/workspaces/{workspaceID}/{rootID}/{filename}", a.attachSession(a.handleServeFile, false)).Methods("GET")

These are currently in the ./src/octoClient.ts class, so test should go in ./src/octoClient.test.ts see ./integrationtests/blocks_test.go and sharing_test.go for samples.

Contributor guide