cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [3/4] cordova-plugin-console git commit: clean up tests, info is below log level so it does not exist by default.
Date Tue, 16 Jun 2015 23:08:06 GMT
clean up tests, info is below log level so it does not exist by default.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/commit/b4899565
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/tree/b4899565
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/diff/b4899565

Branch: refs/heads/master
Commit: b4899565bed6f9267856d57f48e6b2672c55de56
Parents: e888a5b
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Tue Jun 16 16:00:23 2015 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Tue Jun 16 16:00:23 2015 -0700

----------------------------------------------------------------------
 tests/tests.js | 44 +++++++++++++++++++-------------------------
 1 file changed, 19 insertions(+), 25 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-console/blob/b4899565/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 61aab6b..6479e41 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -19,31 +19,25 @@
  *
 */
 
-exports = {
-    defineAutoTests:function () {
-      describe("Console", function () {
-        it("console.spec.1 should exist", function() {
-            expect(window.console).toBeDefined();
-        });
+exports.defineAutoTests = function () {
+  describe("Console", function () {
+    it("console.spec.1 should exist", function() {
+        expect(window.console).toBeDefined();
+    });
+    
+    it("console.spec.2 has required methods log|warn|error", function(){
+        expect(window.console.log).toBeDefined();
+        expect(typeof window.console.log).toBe('function');
         
-        it("console.spec.2 has required methods",function(){
-            expect(window.console.log).toBeDefined();
-            expect(typeof window.console.log).toBe('function');
-            
-            expect(window.console.warn).toBeDefined();
-            expect(typeof window.console.warn).toBe('function');
-            
-            expect(window.console.error).toBeDefined();
-            expect(typeof window.console.error).toBe('function');
-            
-            expect(window.console.info).toBeDefined();
-            expect(typeof window.console.info).toBe('function');
-        });
+        expect(window.console.warn).toBeDefined();
+        expect(typeof window.console.warn).toBe('function');
         
-      });
-    },
-
-    defineManualTests:function (contentEl, createActionButton) {
-      
-    }
+        expect(window.console.error).toBeDefined();
+        expect(typeof window.console.error).toBe('function');                   
+        
+    });
+    
+  });
 };
+
+exports.defineManualTests = function (contentEl, createActionButton) {};


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message