continue writing tests for episode controller. add assert helper.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using FluentAssertions;
|
||||
using System.Net.Http.Headers;
|
||||
|
||||
namespace server.tests.Helpers
|
||||
{
|
||||
internal static class AssertHelper
|
||||
{
|
||||
public static void CheckForRateLimitingHeaders(HttpResponseHeaders headers)
|
||||
{
|
||||
headers.Should().ContainKey("X-Rate-Limit-Limit");
|
||||
headers.Should().ContainKey("X-Rate-Limit-Remaining");
|
||||
headers.Should().ContainKey("X-Rate-Limit-Reset");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user