In a testcase this.stub is undefined since brew upgrade and npm update

15 views
Skip to first unread message

Jakob Fuhrmann

unread,
Apr 16, 2014, 10:36:30 AM4/16/14
to bust...@googlegroups.com
Hello,

we use extensively busterjs with buster-amd and buster-sinon in our project. Since i did an upgrade with brew and npm in my system this.stub is undefined and nearly all of our testcases break.

My versions:
node: 0.10.26
buster: 0.7.4 Beta5
buster-amd: 0.3.1

I tried a downgrade of node to 0.8.22 too, since i read somewhere, that this only is supported by busterjs.

Any help would be appreciated.

Thx 



--
Jakob Fuhrmann
Software Entwickler

uberMetrics Technologies GmbH
Anna-Louisa-Karsch-Str. 5
10178 Berlin




____________________________________________
Die Angaben nach Paragraph 37a Handelsgesetzbuch finden Sie unter folgendem Link auf unserer Homepage: 

Geschäftsführer: Patrick Bunk
HRB 136057B Amtsgericht Berlin Charlottenburg

Jakob Fuhrmann

unread,
Apr 16, 2014, 10:44:58 AM4/16/14
to busterjs
looks like the problem is 'returns':

this.stub().returns("xyz");

Jakob Fuhrmann

unread,
Apr 16, 2014, 10:55:00 AM4/16/14
to busterjs
i modified the demo testcase in buster-amd even here this.stub().returns is undefined:

define(["testModule"], function(mod) {
var assert = buster.assert;

buster.testCase("some test", {
"test that succeeds": function() {
    buster.refute(this.stub().returns);
}
});
});

0 tests, 0 assertions, 1 runtime ... OK

 

Daniel Wittner

unread,
Oct 28, 2014, 4:01:23 AM10/28/14
to bust...@googlegroups.com
0 tests, 0 assertions, 1 runtime ... OK

This means, the test is never run. 

Have you found a solution for your problem? 

Garrick Cheung

unread,
Oct 29, 2014, 2:08:54 AM10/29/14
to bust...@googlegroups.com
Have you tried updating buster?

Jakob Fuhrmann

unread,
Oct 29, 2014, 10:51:48 AM10/29/14
to busterjs
Sorry for not updating it here. In fact my solution was downgrading at first.

Later versions of buster, did fix the issue. With my current buster version 0.7.13 Beta 5 everything works fine. 

2014-10-29 7:08 GMT+01:00 Garrick Cheung <gche...@gmail.com>:
Have you tried updating buster?

--
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/d/optout.



--
Jakob Fuhrmann
Developer

uberMetrics Technologies GmbH
Anna-Louisa-Karsch-Str. 5
10178 Berlin



____________________________________________
Die Angaben nach Paragraph 35a GmbHG finden Sie u.a. über folgenden Link auf unserer Homepage: 
Reply all
Reply to author
Forward
0 new messages