Comparing Buffers produces massive test output
See original GitHub issueE.g.
fs.readFileSync("expected.png").toString()
.should.equal(fs.readFileSync("actual.png").toString());
Issue Analytics
- State:
- Created 11 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Chemistry of buffers and buffers in our blood - Khan Academy
So, in order to be an effective buffer,. The number of moles of the weak acid and its conjugate base must be significantly...
Read more >8.9 Buffer Capacity and Buffer Range - Chemistry LibreTexts
Buffers are characterized by the pH range over which they can ... NaOH to 100.0 mL of distilled water results in a very...
Read more >Test Results Compare Buffer Seals for Hydraulic Cylinders
Tests check the two most common buffer seals to determine what applications each is best suited for.
Read more >Lab 7 - Buffers - WebAssign
The salt, if added to the weak acid solution, produces a large amount of formate ion in comparison to that produced by the...
Read more >Chem 131A: pH and Buffers Experiment
The last section of the experiment involves the preparation of a buffer and an examination of buffer capacity. One of the most frequent...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just FYI - You are going to want to leave them as buffers and use
.deep.equal
.If two buffers are provided, deep equal will do a byte-to-byte comparison. Though, admittedly, it will still likely produce a huge output.
Back on topic…
Could add more types here? https://github.com/chaijs/chai/blob/master/lib/chai/utils/objDisplay.js#L38
Yup @lucasfcosta you’re totally right!
I’ll close this one for now as I think there’s nothing more that needs doing. If anyone sees any more problems with this, please file a new issue 😄