fix(Google Drive Node): Fix issue preventing upload / update working in some configurations (#8417)
This commit is contained in:
@@ -26,7 +26,7 @@ describe('test GoogleDriveV2: file copy', () => {
|
||||
jest.unmock('../../../../v2/transport');
|
||||
});
|
||||
|
||||
it('shuold be called with', async () => {
|
||||
it('should be called with', async () => {
|
||||
const nodeParameters = {
|
||||
operation: 'copy',
|
||||
fileId: {
|
||||
|
||||
@@ -26,7 +26,7 @@ describe('test GoogleDriveV2: file createFromText', () => {
|
||||
jest.unmock('../../../../v2/transport');
|
||||
});
|
||||
|
||||
it('shuold be called with', async () => {
|
||||
it('should be called with', async () => {
|
||||
const nodeParameters = {
|
||||
operation: 'createFromText',
|
||||
content: 'hello drive!',
|
||||
|
||||
@@ -26,7 +26,7 @@ describe('test GoogleDriveV2: file deleteFile', () => {
|
||||
jest.unmock('../../../../v2/transport');
|
||||
});
|
||||
|
||||
it('shuold be called with', async () => {
|
||||
it('should be called with', async () => {
|
||||
const nodeParameters = {
|
||||
operation: 'deleteFile',
|
||||
fileId: {
|
||||
|
||||
@@ -31,7 +31,7 @@ describe('test GoogleDriveV2: file move', () => {
|
||||
jest.unmock('../../../../v2/transport');
|
||||
});
|
||||
|
||||
it('shuold be called with', async () => {
|
||||
it('should be called with', async () => {
|
||||
const nodeParameters = {
|
||||
operation: 'move',
|
||||
fileId: {
|
||||
|
||||
@@ -26,7 +26,7 @@ describe('test GoogleDriveV2: file share', () => {
|
||||
jest.unmock('../../../../v2/transport');
|
||||
});
|
||||
|
||||
it('shuold be called with', async () => {
|
||||
it('should be called with', async () => {
|
||||
const nodeParameters = {
|
||||
operation: 'share',
|
||||
fileId: {
|
||||
|
||||
@@ -26,7 +26,7 @@ describe('test GoogleDriveV2: file update', () => {
|
||||
jest.unmock('../../../../v2/transport');
|
||||
});
|
||||
|
||||
it('shuold be called with', async () => {
|
||||
it('should be called with', async () => {
|
||||
const nodeParameters = {
|
||||
operation: 'update',
|
||||
fileId: {
|
||||
|
||||
@@ -48,7 +48,7 @@ describe('test GoogleDriveV2: file upload', () => {
|
||||
jest.unmock('../../../../v2/helpers/utils');
|
||||
});
|
||||
|
||||
it('shuold be called with', async () => {
|
||||
it('should be called with', async () => {
|
||||
const nodeParameters = {
|
||||
name: 'newFile.txt',
|
||||
folderId: {
|
||||
@@ -75,7 +75,7 @@ describe('test GoogleDriveV2: file upload', () => {
|
||||
undefined,
|
||||
{ uploadType: 'resumable' },
|
||||
undefined,
|
||||
{ resolveWithFullResponse: true },
|
||||
{ returnFullResponse: true },
|
||||
);
|
||||
expect(transport.googleApiRequest).toHaveBeenCalledWith(
|
||||
'PATCH',
|
||||
|
||||
Reference in New Issue
Block a user