Comparing version 0.0.13 to 0.0.14
@@ -22,2 +22,3 @@ 'use strict'; | ||
function type(of) { | ||
if (Buffer.isBuffer(of)) return 'buffer'; | ||
return toString.call(of).slice(8, -1).toLowerCase(); | ||
@@ -24,0 +25,0 @@ } |
{ | ||
"name": "assume", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "Expect-like assertions that works seamlessly in node and browsers", | ||
@@ -44,5 +44,5 @@ "main": "index.js", | ||
"devDependencies": { | ||
"browserify": "7.0.x", | ||
"browserify": "8.0.x", | ||
"istanbul": "0.3.x", | ||
"mocha": "2.0.x", | ||
"mocha": "2.1.x", | ||
"mocha-phantomjs": "3.5.x", | ||
@@ -49,0 +49,0 @@ "phantomjs": "1.9.x", |
@@ -67,2 +67,9 @@ if ('undefined' === typeof global) global = (function that() { | ||
if (global.Buffer) it('classifies buffers', function (next) { | ||
assume(new Buffer(0)).to.be.a('buffer'); | ||
try { assume({}).to.be.a('buffer'); } | ||
catch (e) { next(); } | ||
}); | ||
if (global.Float32Array) it('classifies float32arrays'); | ||
@@ -69,0 +76,0 @@ if (global.Float64Array) it('classifies float64arrays'); |
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
47280
1149