chaijs/chai — pull request #110 by lfborjas (2012-11-22 07:36:34+00:00)
Title: Assertions for unexpected values (undefined and NaN)

As I understood the semantics of `assert.propertyVal`, it should simply check if a given key has a given value associated. But it doesn't behave that way when the value is `undefined` or `NaN`.

That is, the following assertions fail:

```javascript
assert.propertyVal({evil: undefined}, 'evil', undefined)
assert.propertyVal({camus: NaN}, 'camus', NaN)
```

But they shouldn't. This PR addresses that (or, rather, tries to :) )