abstract-leveldown
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -26,2 +26,3 @@ module.exports.setUp = function (test, testCommon) { | ||
} | ||
module.exports.open = function (leveldown, test, testCommon) { | ||
@@ -28,0 +29,0 @@ test('test database open', function (t) { |
@@ -44,5 +44,9 @@ /**** SETUP & UTILITY STUFF ****/ | ||
var result = _value.toString() | ||
if (_value instanceof ArrayBuffer) | ||
var result | ||
if (_value instanceof ArrayBuffer) { | ||
result = String.fromCharCode.apply(null, new Uint16Array(_value)) | ||
} else { | ||
t.ok(typeof Buffer != 'undefined' && _value instanceof Buffer) | ||
result= _value.toString() | ||
} | ||
@@ -49,0 +53,0 @@ t.equals(result, value.toString()) |
{ | ||
"name" : "abstract-leveldown" | ||
, "description" : "An abstract prototype matching the LevelDOWN API" | ||
, "version" : "0.2.0" | ||
, "version" : "0.2.1" | ||
, "homepage" : "https://github.com/rvagg/node-abstract-leveldown" | ||
@@ -6,0 +6,0 @@ , "contributors" : [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70376
20
1458