meteor-fresh
meteor-fresh copied to clipboard
Jasmine tests logging an error in the console
Upon starting up the app and navigating to the homepage, the following error is logged:
Exception in setTimeout callback: TypeError: Cannot read property 'match' of undefined
at translateUrl (http://localhost:3000/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:2780:24)
at toSockjsUrl (http://localhost:3000/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:2830:10)
at _.extend._launchConnection (http://localhost:3000/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:2708:30)
at new LivedataTest.ClientStream (http://localhost:3000/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:2582:8)
at new Connection (http://localhost:3000/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:3522:20)
at Object.DDP.connect (http://localhost:3000/packages/ddp.js?d1840d3ba04c65ffade261f362e26699b7509706:5090:13)
at http://localhost:3000/packages/sanjo_jasmine.js?46996959cf65cb76c4b8a9c4a65eaf702d790e8a:4236:35
at _.extend.withValue (http://localhost:3000/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:955:17)
at withoutInvocation (http://localhost:3000/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:435:45)
at Meteor.bindEnvironment (http://localhost:3000/packages/meteor.js?43b7958c1598803e94014f27f5f622b0bddc0aaf:983:22)
no problems on the testing branch for me. can you tell me how it happens?
Interesting...
Repro:
-
git clone [email protected]:cjsauer/meteor-fresh.git quick-test
-
cd quick-test && git checkout testing
-
meteor
- Observe error in chrome console at http://localhost:3000
I'm using Google Chrome on Ubuntu 14.04
sure is.
works fine on my machine: Chrome 43.0.2357.125 (64-bit) on Ubuntu 15.04
Are you talking about the Karma window that pops up, or native Chrome? I'm not getting that error from within the Karma browser.
EDIT: I'm not getting any errors in Firefox
the Chrome window. Firefox is running fine aswell
Jonas has tagged this as a bug on the Jasmine repo. We'll see if he can find an issue with it. There's also a bug with client integration tests that's currently preventing them from running. I'd like Meteor Fresh testing to work out of the box, so I'll wait to complete that pull request.