power-assert-renderer-comparison
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -31,6 +31,10 @@ 'use strict'; | ||
this.config = assign({}, defaultOptions(), config); | ||
if (typeof this.config.stringify !== 'function') { | ||
if (typeof this.config.stringify === 'function') { | ||
this.stringify = this.config.stringify; | ||
} else { | ||
this.stringify = stringifier(this.config); | ||
} | ||
if (typeof this.config.diff !== 'function') { | ||
if (typeof this.config.diff === 'function') { | ||
this.diff = this.config.diff; | ||
} else { | ||
this.diff = udiff(this.config); | ||
@@ -37,0 +41,0 @@ } |
{ | ||
"name": "power-assert-renderer-comparison", | ||
"description": "comparison renderer for power-assert context", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Takuto Wada", |
8747
148