Skip to content

Commit

Permalink
fix: tests (#697)
Browse files Browse the repository at this point in the history
Co-authored-by: Jossilainen <[email protected]>
  • Loading branch information
Jossilainen and Jossilainen authored Aug 14, 2024
1 parent e4c4394 commit d8269fc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .changeset/pr-697-2018820445.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

---
---
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public async Task Add_Valid_OnboardedApp_AsAdministratorUser_ShouldReturnOk()

Assert.IsNotNull(totalCountBeforeAdded);
Assert.IsNotNull(totalCountAfterAdded);
Assert.AreEqual(HttpStatusCode.OK, response.StatusCode);
Assert.AreEqual(HttpStatusCode.NoContent, response.StatusCode);
Assert.AreEqual(totalCountBeforeAdded + 1, totalCountAfterAdded);
}

Expand Down Expand Up @@ -175,7 +175,7 @@ public async Task Add_Duplicate_OnboardedApp_AsAdministratorUser_ShouldThrowExce
var addDuplicateResponse = await AddOnboardedApp(UserType.Administrator, payload);

// Assert
Assert.AreEqual(HttpStatusCode.BadRequest, addDuplicateResponse.StatusCode);
Assert.AreEqual(HttpStatusCode.Conflict, addDuplicateResponse.StatusCode);
}

[TestMethod]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public async Task Add_Duplicate_OnboardedContext_AsAdministratorUser_ShouldThrow
var addDuplicateResponse = await AddOnboardedContext(UserType.Administrator, payload);

// Assert
Assert.AreEqual(HttpStatusCode.BadRequest, addDuplicateResponse.StatusCode);
Assert.AreEqual(HttpStatusCode.Conflict, addDuplicateResponse.StatusCode);
}

[Ignore] //TODO: Need to resolve id to delete
Expand Down

0 comments on commit d8269fc

Please sign in to comment.