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:
czlonkowski
2025-10-11 20:14:09 +02:00
parent fc8fb66900
commit c580a3dde4

View File

@@ -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'
});
});