Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

working stub test for 204 response on delete

  • Loading branch information...
commit 215e552d246db4ebe21fd83ef5d2843178ad671c 1 parent bd749f2
Dimitar Christoff DimitarChristoff authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/tests/epitome-model-sync-test.js
6 test/tests/epitome-model-sync-test.js
View
@@ -178,7 +178,7 @@ buster.testCase('Epitome model sync >', {
}).destroy();
},
- '// Expect onSync to fire after DELETE with response 204 and no data >': function(done){
+ 'Expect onSync to fire after DELETE with response 204 and no data >': function(done){
this.server = sinon.fakeServer.create();
this.server.autoRespond = true;
@@ -187,12 +187,12 @@ buster.testCase('Epitome model sync >', {
[204, {"content-type": "application/json"},'']
);
- this.model.set({
+ this.model = new Epitome.Model.Sync({
urlRoot: 'models/',
id: 1
});
- this.model.addEvent('sync:error', function(){
+ this.model.addEvent('sync', function(){
buster.assert(true);
done();
});
Please sign in to comment.
Something went wrong with that request. Please try again.