JamieMason/Jasmine-Matchers — pull request #11 by samlecuyer (2014-05-06 18:47:44+00:00)
Title: expand object test to include typeof 'object'

There's an issue jasmine-matchers with webdriver. In particular, I'm using this as part of a protractor test suite, where I'm testing the return value of executing a script on the page. The error is:

"Expected { host : 'my-host.com', other_attribute : '' } to be object."

myObj instanceof Object => false
typeof myObj => 'object'

I know this is actually a data serialization issue, but it'd be nice to be slightly more lax.