You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2014/03/27 23:13:38 UTC

git commit: Revert "[CB-6296] implemented tests for return interface of create function"

Repository: cordova-cli
Updated Branches:
  refs/heads/master 58cb274c7 -> 4d03b4970


Revert "[CB-6296] implemented tests for return interface of create function"

This reverts commit 79e571953c2d3459b459c02eb50e753308fd453d.


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/4d03b497
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/4d03b497
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/4d03b497

Branch: refs/heads/master
Commit: 4d03b4970e771cac3d505a5a83166e5247a7d327
Parents: 58cb274
Author: Steven Gill <st...@gmail.com>
Authored: Thu Mar 27 15:13:15 2014 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Thu Mar 27 15:13:15 2014 -0700

----------------------------------------------------------------------
 spec/create.spec.js | 29 -----------------------------
 1 file changed, 29 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/4d03b497/spec/create.spec.js
----------------------------------------------------------------------
diff --git a/spec/create.spec.js b/spec/create.spec.js
index 8381a6a..a482f4d 100644
--- a/spec/create.spec.js
+++ b/spec/create.spec.js
@@ -68,35 +68,6 @@ describe('create command', function () {
         });
     });
 
-    describe('callback', function() {
-        var promise,
-            callback,
-            flag = false;
-
-        beforeEach(function() {
-            callback = function (err) {
-                flag = true;
-            };
-
-            runs(function(){
-                promise = cordova.raw.create(tempDir, 'org.foo', foobar, {}, callback);
-            });
-
-            waitsFor(function(){
-                return flag;
-            });
-        });
-        
-        it('should return null if a callback parameter is used', function() {
-            expect(promise).toBe(null);
-        });
-
-        it('should call the callback function if callback parameter is used', function() {
-            expect(flag).toBe(true);
-        });
-
-    });
-
     describe('failure', function() {
         it('should return a help message if incorrect number of parameters is used', function(done) {
             this.after(function() {