I got a custom Backbone.Collection class in Coffeescript.
I named it (it is responsible for pagination):
class SI.PaginatedCollection extends Backbone.Collection
I want to write Jasmine spec which will test do I extends that particular class.
Sorry for my English, I now it is probably horrible. 😉
PS I can parse Javascript, but Coffeescript would be ideal.
It seems like overkill to me to test this, but you could do something like this:
If you’re going to be checking
instanceofa lot and/or you care about descriptive Jasmine output, it would be worth making a custom matcher so you could write this: