[Pkg-javascript-commits] [backbone] 33/173: Fix indentation in models test

Jonas Smedegaard dr at jones.dk
Wed Aug 31 07:43:59 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository backbone.

commit 95512b0692384ae9cddc50de9d0a0d2372f1bc34
Author: Jordan Eldredge <jordan at jordaneldredge.com>
Date:   Wed Oct 7 09:08:48 2015 -0700

    Fix indentation in models test
---
 test/model.js | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/test/model.js b/test/model.js
index f43d896..d832c23 100644
--- a/test/model.js
+++ b/test/model.js
@@ -281,11 +281,11 @@
       }
     });
     var model = new Model({x:0});
-      model.on('change:x', function () { attr++; });
-      model.on('change', function () { main++; });
-      model.set({x:2}, {validate:true});
-      model.set({x:1}, {validate:true});
-      assert.deepEqual([attr, main, error], [1, 1, 1]);
+    model.on('change:x', function () { attr++; });
+    model.on('change', function () { main++; });
+    model.set({x:2}, {validate:true});
+    model.set({x:1}, {validate:true});
+    assert.deepEqual([attr, main, error], [1, 1, 1]);
   });
 
   QUnit.test("set triggers changes in the correct order", function(assert) {
@@ -1231,8 +1231,8 @@
     .on('sync', function() { assert.ok(false); })
     .on('destroy', function(){ assert.ok(true); })
     .destroy({ success: function(){
-        assert.ok(true);
-        done();
+      assert.ok(true);
+      done();
     }});
   });
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list