Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Check for 'actual' type #109

Merged
merged 1 commit into from

2 participants

@nnarhinen

At least on Node.js actual property isn't correctly populated because of strict string comparison.

@nnarhinen nnarhinen Check for 'actual' type
At least on Node.js actual property isn't correctly populated because of strict string comparison.
24d4991
@logicalparadox logicalparadox merged commit 46729a8 into chaijs:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 16, 2012
  1. @nnarhinen

    Check for 'actual' type

    nnarhinen authored
    At least on Node.js actual property isn't correctly populated because of strict string comparison.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/chai/utils/getActual.js
View
2  lib/chai/utils/getActual.js
@@ -15,5 +15,5 @@
module.exports = function (obj, args) {
var actual = args[4];
- return 'undefined' !== actual ? actual : obj._obj;
+ return 'undefined' !== typeof actual ? actual : obj._obj;
};
Something went wrong with that request. Please try again.