Problems with calledWith assertions in 0.7

16 views
Skip to first unread message

Martin Aspeli

unread,
Oct 21, 2013, 5:38:14 PM10/21/13
to bust...@googlegroups.com
Hi,

After upgrading to 0.7.6, the few tests I have that used `assert.calledWith` started failing, all with this stack trace:

Error: Chrome 30.0.1599.101, Mac OS X 10.8.5 App app.fetchPortfolios() registers event handlers to automatically switch portfolios when added or removed
  TypeError: Object #<Object> has no method 'keys'
    at Object.ascii.object (./buster/bundle-0.7.js:9193:46)
      at ascii (./buster/bundle-0.7.js:9172:29)
      at Object.Formatio.ascii (./buster/bundle-0.7.js:9268:20)
      at Object.asciiFormat [as format] (./buster/bundle-0.7.js:14565:35)
      at Object.sinon.format (./buster/bundle-0.7.js:14225:35)
      at formattedArgs (./buster/bundle-0.7.js:14343:35)
      at Function.spyAndCalls (./buster/bundle-0.7.js:14352:17)
      at Function.referee.(anonymous function).(anonymous function) (./buster/bundle-0.7.js:8414:38)
      at Object.<anonymous> (./test/browser/app-test.js:616:28)
      at jQuery.Callbacks.fire (./public/vendor/libs/jquery.js:3048:30)

I think this may be down to some kind of version mismatch for the module 'samsam', but it's confusing as hell to debug. I have 1.0.1 installed under buster/node_modules, and 1.1.0 under buster/node_modules/formatio/node_modules.

Any ideas?

Martin

Christian Johansen

unread,
Oct 21, 2013, 6:10:54 PM10/21/13
to bust...@googlegroups.com
Hi,

I made a mistake upgrade, and then pushed 0.7.7. Did you have the same
problem with that?

Chistian

Martin Aspeli

unread,
Oct 21, 2013, 6:53:41 PM10/21/13
to bust...@googlegroups.com, bust...@googlegroups.com
That makes sense. Seems to work with  0.7.7. 

A change log would be so nice ;-)

Martin

Sent from Mailbox for iPhone


--
You received this message because you are subscribed to the Google Groups "Buster.JS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to busterjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply all
Reply to author
Forward
0 new messages