aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/bootstrap-button.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/unit/bootstrap-button.js')
-rw-r--r--js/tests/unit/bootstrap-button.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/tests/unit/bootstrap-button.js b/js/tests/unit/bootstrap-button.js
index b5d083499..e23ff9e30 100644
--- a/js/tests/unit/bootstrap-button.js
+++ b/js/tests/unit/bootstrap-button.js
@@ -2,6 +2,12 @@ $(function () {
module("bootstrap-buttons")
+ test("should provide no conflict", function () {
+ var button = $.fn.button.noConflict()
+ ok(!$.fn.button, 'button was set back to undefined (org value)')
+ $.fn.button = button
+ })
+
test("should be defined on jquery object", function () {
ok($(document.body).button, 'button method is defined')
})