From 0bb55492d148ca6a788ff1366a92cf751e07d0d3 Mon Sep 17 00:00:00 2001 From: oncletom Date: Thu, 22 Sep 2016 01:32:15 +0100 Subject: [PATCH] Compare strings and not buffer as `node@0.10` does not benefit of `Buffer.equals` --- test/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/index.js b/test/index.js index 2801b85..e778b29 100644 --- a/test/index.js +++ b/test/index.js @@ -29,7 +29,7 @@ test('it should pack the test extension', function(t){ var xmlBuffer = crx.generateUpdateXML(); - t.true(xmlBuffer.equals(updateXml)); + t.equals(xmlBuffer.toString(), updateXml.toString()); }) .then(t.pass.bind(t)) .catch(t.error.bind(t));