Files
social-media/backend/tests/Socialize.Tests/CalendarIntegrations/CalendarImportSyncServiceTests.cs
Jonathan Bourdon b66c10b681
Some checks failed
Backend CI/CD / build_and_deploy (push) Has been cancelled
Frontend CI/CD / build_and_deploy (push) Has been cancelled
Add calendar integrations and collaboration updates
2026-05-05 15:25:53 -04:00

17 lines
424 B
C#

using Socialize.Api.Modules.CalendarIntegrations.Services;
namespace Socialize.Tests.CalendarIntegrations;
public class CalendarImportSyncServiceTests
{
[Fact]
public void NormalizeSyncError_truncates_errors_to_stored_length()
{
string message = new('x', 3000);
string normalized = CalendarImportSyncService.NormalizeSyncError(message);
Assert.Equal(2048, normalized.Length);
}
}