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