Skip to content

Commit

Permalink
Make robot in tests that checks for robot
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Dec 16, 2024
1 parent ff79e74 commit c1f0620
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/api.test/Client/RobotTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ public async Task GetRobotById_ShouldReturnNotFound()
[Fact]
public async Task GetRobotById_ShouldReturnRobot()
{
var installation = await _databaseUtilities.ReadOrNewInstallation();
_ = await _databaseUtilities.NewRobot(RobotStatus.Available, installation);

string url = "/robots";
var response = await _client.GetAsync(url);
var robots = await response.Content.ReadFromJsonAsync<List<RobotResponse>>(_serializerOptions);
Expand Down

0 comments on commit c1f0620

Please sign in to comment.