Hello, I am facing something similar, asserting will fail with deeply equal error, but if I’m checking both values manually, content will be identical.
var textData = pm.response.text();
pm.expect(textData).to.eql(environment.fileVar);
Check response body | AssertionError: expected ‘“Email Address”,“Status”,“Sub Status”,“Account”,“Domain”,“First Name”,“Last Name”,“Gender”,“Free Email”,“MX Found”,“MX Record”,“Provider”,“Did You Mean”\r\n”link”,”valid”,"",“email”,”link”,””,””,””,”false”,“True”,”link”,”g-suite”,””\r\n”link”,”valid”,"",“email”,“email.com”,"","","",“false”,“True”,”link”,”qq”,””\r\n”link”,”valid”,"",“email”,”link”,””,””,””,”true”,“True”,”link”,”google”,""\r\n’ to deeply equal ‘“Email Address”,“Status”,“Sub Status”,“Account”,“Domain”,“First Name”,“Last Name”,“Gender”,“Free Email”,“MX Found”,“MX Record”,“SMTP Provider”,“Did You Mean” “link”,”valid","",“stuart”,”link”,””,””,””,”false”,“True”,”link”,”g-suite”,"" “link”,”valid","",“email”,“email.com”,"","","",“false”,“True”,”link”,”qq”,"" “link”,”valid","",“email”,”link”,””,””,””,”true”,“True”,”link”,”google”,""’
Looks like assertion is adding \r\n?
Printing both textData and fileVar will result in the same data.
Any other way to compare this kind of data?