zazzy-browser
Advanced tools
Comparing version 1.1.6 to 1.1.7
//! zzb.js | ||
//! version: 1.1.6 | ||
//! version: 1.1.7 | ||
//! author(s): Jaret Pfluger | ||
@@ -1500,2 +1500,6 @@ //! license: MIT | ||
_types.prototype.isBoolean = function (b) { | ||
return (typeof b === 'boolean') | ||
} | ||
/** | ||
@@ -1502,0 +1506,0 @@ * compare |
//! zzb.js | ||
//! version: 1.1.6 | ||
//! version: 1.1.7 | ||
//! author(s): Jaret Pfluger | ||
@@ -4,0 +4,0 @@ //! license: MIT |
{ | ||
"name": "zazzy-browser", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "A collection of general-purpose browser utilities used as higher-level building-blocks to create Bootstrap v4 websites and assist in client-server communications.", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -63,2 +63,6 @@ // client or server | ||
_types.prototype.isBoolean = function (b) { | ||
return (typeof b === 'boolean') | ||
} | ||
/** | ||
@@ -65,0 +69,0 @@ * compare |
@@ -35,2 +35,3 @@ /* global describe, it */ | ||
var sPigTemplateNamed = '{name}, you have {number} mushroom{ending}' | ||
var sPigTemplateNamedDeep = '{ob1.name}, you have {number} mushroom{ob2.objsub1.ending}' | ||
@@ -62,3 +63,11 @@ describe('zzb.strings.format', function () { | ||
}) | ||
it('should deep-match template-named from object', function (done) { | ||
var err = null | ||
var compare = zzb.strings.format(sPigTemplateNamedDeep, {ob1: {name: 'Piggy'}, number: 2, ob2: {objsub1: {ending: 's'}}}) | ||
if (compare !== sPig2) { | ||
err = new Error('failed match from strings') | ||
} | ||
done(err) | ||
}) | ||
}) | ||
}) |
205376
4317