Skip to content
Browse files

Remove UTF-8 workaround in tests.

  • Loading branch information...
1 parent d068086 commit d57610dc69c32ecc31d32482cb64ec6399926aab @akaspin committed May 31, 2010
Showing with 3 additions and 9 deletions.
  1. +3 −9 test/common.js
View
12 test/common.js
@@ -12,17 +12,11 @@ file = exports.file = function(name) {
assertFile = exports.assertFile = function(actual, name) {
file = path.normalize(__dirname + "/expects/" + name + ".html");
- fs.readFile(file, 'binary', function(err, contents) {
+ fs.readFile(file, 'utf8', function(err, expected) {
if (err) {
throw err;
- } else {
- var buf = new Buffer(contents.length);
- buf.write(contents, 'binary', 0);
- var expected = buf.toString("utf8");
-
- //sys.debug(expected);
- assert.equal(actual, expected);
- }
+ }
+ assert.equal(actual, expected);
});
};

0 comments on commit d57610d

Please sign in to comment.
Something went wrong with that request. Please try again.