Fix Node.js unit-tests, and add CHANGELOG entry for

This commit is contained in:
Jürg Lehni 2016-07-12 19:27:35 +02:00
parent 89c60b1a05
commit 8a45c5dff9
2 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,11 @@
# Change Log
## `0.10.3` (Unreleased)
### Changed
- Loosely couple Node.js / Electron code to Canvas module, and treat its absence
like a headless web worker context in the browser (#1103).
## `0.10.2`
### Fixed

View file

@ -86,7 +86,7 @@ var equals = function(actual, expected, message, options) {
|| type === 'boolean' && 'Boolean'
|| type === 'undefined' && 'Undefined'
|| Array.isArray(expected) && 'Array'
|| expected instanceof self.Element && 'Element' // handle DOM Elements
|| expected instanceof window.Element && 'Element' // handle DOM Elements
|| (cls = expected && expected._class) // check _class 2nd last
|| type === 'object' && 'Object'; // Object as catch-all
var comparator = type && comparators[type];