practicalmeteor / meteor-sinon

Depreciated - Sinon.JS, wrapped for meteor
https://atmospherejs.com/practicalmeteor/sinon
Other
20 stars 11 forks source link

Not working with velocity/meteor 1? #1

Closed dsummersl closed 9 years ago

dsummersl commented 10 years ago

The following appears when I add your package to my project:

Exception in delivering result of invoking 'mirrorInfo': ReferenceError: Session is not defined
    at http://localhost:3000/packages/mike_mocha.js?71466b37e24701857780026b17754fb447bd6ff3:6040:7
    at null._callback (http://localhost:3000/packages/meteor.js?61916b1060b33931a21f104fbffb67c2f3d493c5:973:22)
    at _.extend._maybeInvokeCallback (http://localhost:3000/packages/ddp.js?1f971b2ac9f4bdab7372cb5098ed1e26ff98dfb2:3853:12)
    at _.extend.receiveResult (http://localhost:3000/packages/ddp.js?1f971b2ac9f4bdab7372cb5098ed1e26ff98dfb2:3873:10)
    at _.extend._livedata_result (http://localhost:3000/packages/ddp.js?1f971b2ac9f4bdab7372cb5098ed1e26ff98dfb2:4926:9)
    at onMessage (http://localhost:3000/packages/ddp.js?1f971b2ac9f4bdab7372cb5098ed1e26ff98dfb2:3718:12)
    at http://localhost:3000/packages/ddp.js?1f971b2ac9f4bdab7372cb5098ed1e26ff98dfb2:2713:11
    at Array.forEach (native)
    at Function._.each._.forEach (http://localhost:3000/packages/underscore.js?0a80a8623e1b40b5df5a05582f288ddd586eaa18:156:11)
    at self.socket.onmessage (http://localhost:3000/packages/ddp.js?1f971b2ac9f4bdab7372cb5098ed1e26ff98dfb2:2712:11) 

I was able to reproduce on a sample project by doing:

meteor create example
cd example
meteor add mike:mocha
meteor add spacejamio:sinon

meteor

# check browser
rbabayoff commented 10 years ago

Hey, this is not a sinon problem. Sinon has nothing to do with sessions. It's a problem with mike:mocha or a package it depends on. The mirrorInfo is related to velocity, so it may be either mike:mocha or vecloity:core.