tests: add test for calling refresh with no access token

This commit is contained in:
Stevan Freeborn
2026-02-03 11:49:02 -06:00
parent f9c75b6778
commit 99db5696ff
@@ -0,0 +1,15 @@
namespace FiscalOS.API.Tests.Integration;
public class RefreshTests(TestApi testApi) : IntegrationTest(testApi)
{
private static readonly Uri RefreshUri = new("/refresh", UriKind.Relative);
[Fact]
public async Task Refresh_WhenCalledWithNoAccessToken_ItShouldReturn401Unauthorized()
{
var response = await Client.PostAsync(RefreshUri, null, TestContext.Current.CancellationToken); ;
response.StatusCode.Should().Be(HttpStatusCode.Unauthorized);
}
}