Update PaymentsControllerTest

This commit is contained in:
Chris Eager authored and Chris Eager committed 2021-09-13 09:58:42 -07:00
1 parent 6c6e6a4975
commit 372e131e25
1 file changed
+2 -1
@@ -126,7 +126,8 @@ class PaymentsControllerTest {
.header("Authorization", AuthHelper.getAuthHeader(AuthHelper.VALID_UUID, AuthHelper.VALID_PASSWORD))
.get(String.class);
assertThat(json.contains("{\"USD\":2.35,\"EUR\":1.89}"));
// the currency serialization might occur in either order
assertThat(json).containsPattern("\\{(\"EUR\":1.89,\"USD\":2.35|\"USD\":2.35,\"EUR\":1.89)}");
}
}