test(free-battle): consistency battle_result echoes on rotation URL

This commit is contained in:
gamer147
2026-06-12 21:29:26 -04:00
parent 523ac605a1
commit 31ecda95f7

View File

@@ -138,4 +138,17 @@ public class FreeBattleControllerTests
Assert.That(raw, Does.Not.Contain("\"after_master_point\""));
Assert.That(raw, Does.Not.Contain("\"successive_win"));
}
[Test]
public async Task Finish_with_consistency_result_echoes_2_on_rotation_url()
{
await using var factory = new SVSimTestFactory();
var viewerId = await factory.SeedViewerAsync();
var client = factory.CreateAuthenticatedClient(viewerId);
var resp = await client.PostAsJsonAsync("/rotation_free_battle/finish", FinishBody(battleResult: 2));
using var doc = JsonDocument.Parse(await resp.Content.ReadAsStringAsync());
Assert.That(doc.RootElement.GetProperty("battle_result").GetInt32(), Is.EqualTo(2));
}
}