mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-06 13:33:11 +00:00
fix: resolve TypeScript error in telemetry test
Cast config.firstRun to string for Date constructor to fix TypeScript type checking. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -419,7 +419,7 @@ describe('TelemetryConfigManager', () => {
|
||||
const config = manager.loadConfig();
|
||||
|
||||
expect(config.firstRun).toBeDefined();
|
||||
expect(new Date(config.firstRun).getTime()).toBeGreaterThan(0);
|
||||
expect(new Date(config.firstRun as string).getTime()).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it('should handle config updates during runtime', () => {
|
||||
|
||||
Reference in New Issue
Block a user