Comparing version 5.0.1 to 5.0.2
@@ -5,3 +5,3 @@ { | ||
"description": "Nodejs bindings to Google's Snappy compression library", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"homepage": "https://github.com/kesla/node-snappy", | ||
@@ -23,3 +23,3 @@ "repository": { | ||
"devDependencies": { | ||
"ava": "^0.13.0", | ||
"ava": "^0.14.0", | ||
"bluebird": "^3.3.4", | ||
@@ -26,0 +26,0 @@ "nyc": "^6.1.1", |
32
test.js
@@ -16,3 +16,3 @@ 'use strict'; | ||
const buffer = yield compress(inputString); | ||
t.ok(Buffer.isBuffer(buffer), 'should return a Buffer'); | ||
t.truthy(Buffer.isBuffer(buffer), 'should return a Buffer'); | ||
}); | ||
@@ -22,3 +22,3 @@ | ||
const buffer = yield compress(inputBuffer); | ||
t.ok(Buffer.isBuffer(buffer), 'should return a Buffer'); | ||
t.truthy(Buffer.isBuffer(buffer), 'should return a Buffer'); | ||
}); | ||
@@ -32,3 +32,3 @@ | ||
const buffer = compressSync(inputString); | ||
t.ok(Buffer.isBuffer(buffer), 'should return a Buffer'); | ||
t.truthy(Buffer.isBuffer(buffer), 'should return a Buffer'); | ||
}); | ||
@@ -38,3 +38,3 @@ | ||
const buffer = compressSync(inputBuffer); | ||
t.ok(Buffer.isBuffer(buffer), 'should return a Buffer'); | ||
t.truthy(Buffer.isBuffer(buffer), 'should return a Buffer'); | ||
}); | ||
@@ -45,3 +45,3 @@ | ||
const isCompressed = yield isValidCompressed(compressed); | ||
t.ok(isCompressed); | ||
t.truthy(isCompressed); | ||
}); | ||
@@ -51,3 +51,3 @@ | ||
const isCompressed = yield isValidCompressed(new Buffer('beep boop')); | ||
t.notOk(isCompressed); | ||
t.falsy(isCompressed); | ||
}); | ||
@@ -58,3 +58,3 @@ | ||
const isCompressed = isValidCompressedSync(compressed); | ||
t.ok(isCompressed); | ||
t.truthy(isCompressed); | ||
}); | ||
@@ -64,3 +64,3 @@ | ||
const isCompressed = isValidCompressedSync(new Buffer('beep boop')); | ||
t.notOk(isCompressed); | ||
t.falsy(isCompressed); | ||
}); | ||
@@ -71,3 +71,3 @@ | ||
const buffer = yield uncompress(compressed); | ||
t.same(buffer, inputBuffer); | ||
t.deepEqual(buffer, inputBuffer); | ||
}); | ||
@@ -78,3 +78,3 @@ | ||
const buffer = yield uncompress(compressed, { asBuffer: true }); | ||
t.same(buffer, inputBuffer); | ||
t.deepEqual(buffer, inputBuffer); | ||
}); | ||
@@ -85,3 +85,3 @@ | ||
const string = yield uncompress(compressed, { asBuffer: false }); | ||
t.same(string, inputString); | ||
t.deepEqual(string, inputString); | ||
}); | ||
@@ -93,3 +93,3 @@ | ||
yield uncompress(compressed, opts); | ||
t.same(opts, {}); | ||
t.deepEqual(opts, {}); | ||
}); | ||
@@ -108,3 +108,3 @@ | ||
const buffer = uncompressSync(compressed); | ||
t.same(buffer, inputBuffer); | ||
t.deepEqual(buffer, inputBuffer); | ||
}); | ||
@@ -115,3 +115,3 @@ | ||
const buffer = uncompressSync(compressed, { asBuffer: true }); | ||
t.same(buffer, inputBuffer); | ||
t.deepEqual(buffer, inputBuffer); | ||
}); | ||
@@ -122,3 +122,3 @@ | ||
const string = uncompressSync(compressed, { asBuffer: false }); | ||
t.same(string, inputString); | ||
t.deepEqual(string, inputString); | ||
}); | ||
@@ -130,3 +130,3 @@ | ||
uncompressSync(compressed, opts); | ||
t.same(opts, {}); | ||
t.deepEqual(opts, {}); | ||
}); | ||
@@ -133,0 +133,0 @@ |
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
1762057