mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
fix(Google Sheets Node): Append fails if cells have some default values added by data validation rules (#9950)
This commit is contained in:
@@ -304,11 +304,11 @@ describe('Test Google Sheets, lookupValues', () => {
|
||||
|
||||
const googleSheet = new GoogleSheet('spreadsheetId', fakeExecuteFunction);
|
||||
|
||||
const result = await googleSheet.lookupValues(
|
||||
const result = await googleSheet.lookupValues({
|
||||
inputData,
|
||||
0,
|
||||
1,
|
||||
[
|
||||
keyRowIndex: 0,
|
||||
dataStartRowIndex: 1,
|
||||
lookupValues: [
|
||||
{
|
||||
lookupColumn: 'num',
|
||||
lookupValue: '1',
|
||||
@@ -318,9 +318,9 @@ describe('Test Google Sheets, lookupValues', () => {
|
||||
lookupValue: 'foo',
|
||||
},
|
||||
],
|
||||
true,
|
||||
'OR',
|
||||
);
|
||||
returnAllMatches: true,
|
||||
combineFilters: 'OR',
|
||||
});
|
||||
|
||||
expect(result).toBeDefined();
|
||||
expect(result).toEqual([
|
||||
@@ -366,11 +366,11 @@ describe('Test Google Sheets, lookupValues', () => {
|
||||
|
||||
const googleSheet = new GoogleSheet('spreadsheetId', fakeExecuteFunction);
|
||||
|
||||
const result = await googleSheet.lookupValues(
|
||||
const result = await googleSheet.lookupValues({
|
||||
inputData,
|
||||
0,
|
||||
1,
|
||||
[
|
||||
keyRowIndex: 0,
|
||||
dataStartRowIndex: 1,
|
||||
lookupValues: [
|
||||
{
|
||||
lookupColumn: 'num',
|
||||
lookupValue: '1',
|
||||
@@ -380,9 +380,9 @@ describe('Test Google Sheets, lookupValues', () => {
|
||||
lookupValue: 'baz',
|
||||
},
|
||||
],
|
||||
true,
|
||||
'AND',
|
||||
);
|
||||
returnAllMatches: true,
|
||||
combineFilters: 'AND',
|
||||
});
|
||||
|
||||
expect(result).toBeDefined();
|
||||
expect(result).toEqual([
|
||||
|
||||
Reference in New Issue
Block a user