Disables driving mode on unit test setup.
authorSalvatore Iovene <salvatore.iovene@intel.com>
Tue, 15 Jan 2013 12:24:35 +0000 (14:24 +0200)
committerSalvatore Iovene <salvatore.iovene@intel.com>
Tue, 15 Jan 2013 12:24:35 +0000 (14:24 +0200)
tests/unit/cowhide-button.js

index f6cb86e..49df708 100644 (file)
@@ -1,6 +1,12 @@
 $(function () {
 
-    module("cowhide-buttons")
+    module("cowhide-buttons", {
+      setup: function() {
+        // Resets the driving state
+        console.log("SET UP")
+        $.cowhide.setDrivingMode(false)
+      }
+    })
 
       test("should be defined on jquery object", function () {
         ok($(document.body).button, 'button method is defined')