Skip to content

Commit

Permalink
fix note test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex McAusland committed Nov 7, 2024
1 parent 99c146c commit 0a9ccae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public void addNotes() throws Exception {
var data = (Map) result.get("data");
var caseData = mapper.readValue(mapper.writeValueAsString(data), CaseData.class);
assertThat(caseData.getNotes().size(), equalTo(2));
assertThat(caseData.getNotes().get(0).getValue().getNote(), equalTo("Test!"));
}

@Order(3)
Expand Down Expand Up @@ -137,7 +138,7 @@ private void addNote() throws Exception {
getServiceAuth(), String.valueOf(caseRef), "caseworker-add-note").getToken();

var body = Map.of(
"event_data", Map.of(
"data", Map.of(
"note", "Test!"
),
"event", Map.of(
Expand Down

0 comments on commit 0a9ccae

Please sign in to comment.