Postman fails to assert long string in response value

How to assert response value with long string?

In our API design, the response contains multiple elements with base64 binary string values, which can be real long (e.g. 135,000 characters, or more), and I think this is causing the assertion failure.

This is a snippet of my test:
pm.test(“expected file”, () => {
const responseJson = pm.response.json();
pm.expect(responseJson.result.file).to.eql(“JVBERi0xLjMKJcK1wrYKCjEgMCBvYmoKPDwvVHlwZS9QYWdlcy9LaWRzWz… the rest is truncated, up to ~135k characters…”);
});

Have I done anything wrong or is there any way to get around this issue?

Can you please share a complete example? I don’t see a reason why this would fail, IF the data is actually equal.