Where did expect go?

10 views
Skip to first unread message

Pat Kujawa

unread,
Mar 11, 2014, 9:09:27 PM3/11/14
to buster...@googlegroups.com
I'm trying to use busterjs/referee as my assertion lib (with mocha), and I was trying to get the `expect` function, but it is no longer defined on `referee`. I see `referee.assert`, but no `referee.expect`. I expected it to be there since https://github.com/busterjs/referee/blob/master/test/expect-test.js uses that property, but I guess it's been moved. And I'm having a hard time finding how all this busterjs stuff connects :(

Any guidance appreciated.
Pat

Christian Johansen

unread,
Mar 12, 2014, 2:58:42 AM3/12/14
to Pat Kujawa, buster...@googlegroups.com
If your loading referee yourself, you must also load expect.js:
https://github.com/busterjs/referee/blob/master/lib/expect.js

C
Reply all
Reply to author
Forward
0 new messages