From 1f9a94b25d2a8546fdd9872f2867ac1cfec80f9f Mon Sep 17 00:00:00 2001 From: Tony Jin Date: Mon, 8 May 2017 18:37:13 -0700 Subject: [PATCH] Chore: Remove unused 'parent' field from Box File object (#91) --- src/lib/__tests__/file-test.js | 3 +-- src/lib/file.js | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/__tests__/file-test.js b/src/lib/__tests__/file-test.js index 11ddc4e10..91051a3df 100644 --- a/src/lib/__tests__/file-test.js +++ b/src/lib/__tests__/file-test.js @@ -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'); }); }); @@ -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', diff --git a/src/lib/file.js b/src/lib/file.js index c8721a53c..81d24ccb0 100644 --- a/src/lib/file.js +++ b/src/lib/file.js @@ -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',