I\'m using Mocha / Chai to unit test a library that has recently started using nodejs\' Buffer objects to solve a different problem.
I get this error message in the
I also got the same error. You can try this
var b = new Buffer('some string or other');
Second param is encoding (optional). By default encoding will be utf-8
utf-8