Browse Source

Fix indenting in ownable

Manuel Araoz 9 years ago
parent
commit
5dbad00a8e
1 changed files with 18 additions and 18 deletions
  1. 18 18
      test/Ownable.js

+ 18 - 18
test/ownable.js → test/Ownable.js

@@ -2,36 +2,36 @@ contract('Ownable', function(accounts) {
   it("should have an owner", function(done) {
   it("should have an owner", function(done) {
     var ownable = Ownable.deployed();
     var ownable = Ownable.deployed();
     return ownable.owner()
     return ownable.owner()
-    .then(function(owner) {
-      assert.isTrue(owner != 0);
-    })
-    .then(done)
+      .then(function(owner) {
+        assert.isTrue(owner != 0);
+      })
+      .then(done)
   });
   });
 
 
   it("changes owner after transfer", function(done) {
   it("changes owner after transfer", function(done) {
     var ownable = Ownable.deployed();
     var ownable = Ownable.deployed();
     var other = accounts[1];
     var other = accounts[1];
     return ownable.transfer(other)
     return ownable.transfer(other)
-    .then(function() {
-      return ownable.owner();
-    })
-    .then(function(owner) {
-      assert.isTrue(owner === other);
-    })
-    .then(done)
+      .then(function() {
+        return ownable.owner();
+      })
+      .then(function(owner) {
+        assert.isTrue(owner === other);
+      })
+      .then(done)
   });
   });
 
 
   it("should prevent non-owners from transfering" ,function(done) {
   it("should prevent non-owners from transfering" ,function(done) {
     var ownable = Ownable.deployed();
     var ownable = Ownable.deployed();
     var other = accounts[2];
     var other = accounts[2];
     return ownable.transfer(other, {from: accounts[2]})
     return ownable.transfer(other, {from: accounts[2]})
-    .then(function() {
-      return ownable.owner();
-    })
-    .then(function(owner) {
-      assert.isFalse(owner === other);
-    })
-    .then(done)
+      .then(function() {
+        return ownable.owner();
+      })
+      .then(function(owner) {
+        assert.isFalse(owner === other);
+      })
+      .then(done)
   });
   });
 
 
 });
 });