mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-01-30 06:22:04 +00:00
fix: update test to match new Google Sheets validation logic
Updated test expectation to match the new validation that accepts EITHER range OR columns for Google Sheets append operation. This fixes the CI test failure. Test was expecting old message: 'Range is required for append operation' Now expects: 'Range or columns mapping is required for append operation' Related to #304 - Google Sheets v4+ resourceMapper validation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -347,14 +347,14 @@ describe('NodeSpecificValidators', () => {
|
||||
};
|
||||
});
|
||||
|
||||
it('should require range for append', () => {
|
||||
it('should require range or columns for append', () => {
|
||||
NodeSpecificValidators.validateGoogleSheets(context);
|
||||
|
||||
|
||||
expect(context.errors).toContainEqual({
|
||||
type: 'missing_required',
|
||||
property: 'range',
|
||||
message: 'Range is required for append operation',
|
||||
fix: 'Specify range like "Sheet1!A:B" or "Sheet1!A1:B10"'
|
||||
message: 'Range or columns mapping is required for append operation',
|
||||
fix: 'Specify range like "Sheet1!A:B" OR use columns with mappingMode'
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user