using NATS.Server.TestUtilities;

namespace NATS.Server.JetStream.Tests;

public class JetStreamApiRouterTests
{
    [Fact]
    public async Task Unknown_js_api_subject_returns_structured_error()
    {
        var response = await JetStreamApiFixture.RequestAsync("$JS.API.BAD", "{}");
        response.Error.ShouldNotBeNull();
        response.Error!.Code.ShouldBe(404);
    }
}
