Story 3.3 done
This commit is contained in:
@@ -340,9 +340,8 @@ describe('PresetImportExportManager', () => {
|
||||
|
||||
const result = await manager.importPresets(JSON.stringify(importData), 'merge');
|
||||
|
||||
// With the current implementation, invalid presets are reported in errors
|
||||
// but the operation continues with valid presets
|
||||
expect(result.success).toBe(true); // Valid preset was imported
|
||||
// Invalid presets produce extraction errors; valid presets still import
|
||||
expect(result.success).toBe(false); // Extraction errors present
|
||||
expect(result.added).toBe(1); // One valid preset added
|
||||
expect(result.errors.length).toBeGreaterThan(0);
|
||||
expect(result.errors.some(e => e.includes('Invalid Preset'))).toBe(true);
|
||||
|
||||
Reference in New Issue
Block a user