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