When renaming the FILE commentsView.spec.js, tests fail, even if file contents doesn't change. I was able to rename all other view test files without any repercussions.
My only theory is that perhaps there's some caching going on and the tests aren't REALLY passing?
Here's the error dump:
1) commentListView render displays a list of Comments:
TypeError: Cannot read property 'listenId' of undefined
at Events.(anonymous function) as listenTo
at module.exports.Backbone.Marionette.ItemView.extend.initialize (/Users/dickason/code/shots/app/components/comments/commentView.js:13:12)
at Backbone.View (file:///Users/dickason/code/shots/server/static/lib/backbone.js:1001:21)
at Marionette.View.Backbone.View.extend.constructor (file:///Users/dickason/code/shots/server/static/lib/backbone.marionette.js:1235:41)
at Marionette.ItemView.Marionette.View.extend.constructor (file:///Users/dickason/code/shots/server/static/lib/backbone.marionette.js:1451:43)
at new child (file:///Users/dickason/code/shots/server/static/lib/backbone.js:1566:41)
at null. (/Users/dickason/code/shots/app/components/comments/list/commentListView.js:82:27)
at Array.forEach (native)
at Function..each._.forEach (file:///Users/dickason/code/shots/server/static/lib/underscore.js:79:11)
at Collection.(anonymous function) as each
Can't figure this one out.
When renaming the FILE commentsView.spec.js, tests fail, even if file contents doesn't change. I was able to rename all other view test files without any repercussions.
My only theory is that perhaps there's some caching going on and the tests aren't REALLY passing?
Here's the error dump: 1) commentListView render displays a list of Comments: TypeError: Cannot read property 'listenId' of undefined at Events.(anonymous function) as listenTo at module.exports.Backbone.Marionette.ItemView.extend.initialize (/Users/dickason/code/shots/app/components/comments/commentView.js:13:12) at Backbone.View (file:///Users/dickason/code/shots/server/static/lib/backbone.js:1001:21) at Marionette.View.Backbone.View.extend.constructor (file:///Users/dickason/code/shots/server/static/lib/backbone.marionette.js:1235:41) at Marionette.ItemView.Marionette.View.extend.constructor (file:///Users/dickason/code/shots/server/static/lib/backbone.marionette.js:1451:43) at new child (file:///Users/dickason/code/shots/server/static/lib/backbone.js:1566:41) at null. (/Users/dickason/code/shots/app/components/comments/list/commentListView.js:82:27)
at Array.forEach (native)
at Function. .each._.forEach (file:///Users/dickason/code/shots/server/static/lib/underscore.js:79:11)
at Collection.(anonymous function) as each