Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/actions/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const fetchData = require('../utils/fetch-data');

/**
* File information
* @param {Object} params.fileId
* @param {Object} [params.fields]
* @param {Object} params.uploadId
* @param {String[]} [params.fields]
* @return {Promise}
*/
async function getFileData({ params }) {
Expand Down
2 changes: 1 addition & 1 deletion test/suites/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('data suite', () => {
});
});

it('400 on if one of the fields length exceeds 50 chars', async () => {
it('400 when any of the requested fields are not strings', async () => {
const req = this.send(route, {
uploadId: this.response.uploadId,
fields: [
Expand Down