Open gkorland opened 10 years ago
tests are broken
how do you run the tests?
npm install
make test
Yells
1) Backbone.iobind ioBind:
TypeError: Object function ( w ) {
if ( !w.document ) {
throw new Error( "jQuery requires a window with a document" );
}
return factory( w );
} has no method 'Deferred'
Definition of commonjs jquery module was changed in new version. This error is because of this.
I have just updated package.json in this repos with jquery 1.8.3 as dependency. With this fix these tests pass.
npm install
make build
make test
Tests do not pass because the new changes added model id to the destination url.
@gkorland Could you please provide tests
In my case (and I it's very common when you have complex model) the url looks like this: /users/profiles/categories/{cat_id}
But Backbone.iosync only uses the first part as a namespace:
Which means all models which have a URL that starts with /users/... loose the rest of the URL.