Skip to content

Commit

Permalink
Chore: Remove unused 'parent' field from Box File object (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyjin authored May 9, 2017
1 parent bbc6ea3 commit 1f9a94b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/lib/__tests__/file-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('lib/file', () => {

describe('getURL()', () => {
it('should return the correct api url', () => {
assert.equal(getURL('id', 'api'), 'api/2.0/files/id?fields=permissions,parent,shared_link,sha1,file_version,name,size,extension,representations,watermark_info,authenticated_download_url');
assert.equal(getURL('id', 'api'), 'api/2.0/files/id?fields=permissions,shared_link,sha1,file_version,name,size,extension,representations,watermark_info,authenticated_download_url');
});
});

Expand Down Expand Up @@ -99,7 +99,6 @@ describe('lib/file', () => {
it('should return true if file has all the appropratie properties', () => {
const file = {
permissions: {},
parent: 'blah',
shared_link: 'blah',
sha1: 'blah',
file_version: 'blah',
Expand Down
1 change: 0 additions & 1 deletion src/lib/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { ORIGINAL_REP_NAME } from './constants';
// (e.g. Box.Preview.updateFileCache()) will need to be updated if this list is modified.
const FILE_FIELDS = [
'permissions',
'parent',
'shared_link',
'sha1',
'file_version',
Expand Down

0 comments on commit 1f9a94b

Please sign in to comment.