unexpected
Advanced tools
Comparing version 4.1.1 to 4.1.3
@@ -6,3 +6,3 @@ module.exports = function (expect) { | ||
expect.output.addStyle('strings', function (content) { | ||
this.text(content, '#CC7200'); | ||
this.text(content, 'cyan'); | ||
}); | ||
@@ -9,0 +9,0 @@ expect.output.addStyle('key', function (content) { |
@@ -19,4 +19,4 @@ /*global Uint8Array, Uint16Array*/ | ||
name: 'object', | ||
identify: function (arr) { | ||
return typeof arr === 'object'; | ||
identify: function (obj) { | ||
return obj && typeof obj === 'object'; | ||
}, | ||
@@ -78,3 +78,3 @@ equal: function (a, b, equal) { | ||
if (key.match(/["' ]/)) { | ||
propertyOutput.strings(expect.inspect(key)); | ||
propertyOutput.append(expect.inspect(key)); | ||
} else { | ||
@@ -296,3 +296,3 @@ propertyOutput.key(key); | ||
inspect: function (output, value) { | ||
return output.text(utils.getOuterHTML(value)); | ||
return output.code(utils.getOuterHTML(value), 'html'); | ||
} | ||
@@ -299,0 +299,0 @@ }); |
{ | ||
"name": "unexpected", | ||
"version": "4.1.1", | ||
"version": "4.1.3", | ||
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -15,3 +15,3 @@ # Unexpected | ||
[![NPM version](https://badge.fury.io/js/unexpected.png)](http://badge.fury.io/js/unexpected) | ||
[![Build Status](https://travis-ci.org/sunesimonsen/unexpected.png)](https://travis-ci.org/sunesimonsen/unexpected) | ||
[![Build Status](https://travis-ci.org/sunesimonsen/unexpected.svg?branch=master)](https://travis-ci.org/sunesimonsen/unexpected) | ||
[![Coverage Status](https://coveralls.io/repos/sunesimonsen/unexpected/badge.png)](https://coveralls.io/r/sunesimonsen/unexpected) | ||
@@ -18,0 +18,0 @@ [![Dependency Status](https://david-dm.org/sunesimonsen/unexpected.png)](https://david-dm.org/sunesimonsen/unexpected) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
478532
11674