Permalink
Browse files

test: remove "iconv-lite" usage

Using "ucs2" instead of "utf16le" for the encoding works
even in node v0.6.x, so we can ditch "iconv-lite".
  • Loading branch information...
1 parent 54e6285 commit af6e9e7695dc9c8eb88162bc4868125071d73e77 @TooTallNate committed Jun 10, 2014
Showing with 1 addition and 3 deletions.
  1. +0 −1 package.json
  2. +1 −2 test/reinterpretUntilZeros.js
View
@@ -37,7 +37,6 @@
"dox": "0.4.4",
"highlight.js": "1",
"jade": "0.35.0",
- "iconv-lite": "0.2.11",
"marked": "0.3.2",
"mocha": "*",
"weak": "0.3.2"
@@ -2,7 +2,6 @@
var fs = require('fs')
var assert = require('assert')
var weak = require('weak')
-var iconv = require('iconv-lite')
var ref = require('../')
describe('reinterpretUntilZeros()', function () {
@@ -31,7 +30,7 @@ describe('reinterpretUntilZeros()', function () {
var data = fs.readFileSync(__dirname + '/utf16le.bin');
var strBuf = ref.reinterpretUntilZeros(data, 2);
assert(strBuf.length > 10000);
- var str = iconv.decode(strBuf, 'ucs2');
+ var str = strBuf.toString('ucs2');
// the data in `utf16le.bin` should be a JSON parsable string
assert(JSON.parse(str));
})

0 comments on commit af6e9e7

Please sign in to comment.