mirror of
https://github.com/jasny/bootstrap.git
synced 2026-01-14 00:48:04 -05:00
21 lines
607 B
JavaScript
21 lines
607 B
JavaScript
$(function () {
|
|
|
|
module('inputmask')
|
|
|
|
test('should provide no conflict', function () {
|
|
var inputmask = $.fn.inputmask.noConflict()
|
|
ok(!$.fn.inputmask, 'inputmask was set back to undefined (org value)')
|
|
$.fn.inputmask = inputmask
|
|
})
|
|
|
|
test('should be defined on jquery object', function () {
|
|
ok($(document.body).inputmask, 'inputmask method is defined')
|
|
})
|
|
|
|
test('should return element', function () {
|
|
ok($(document.body).inputmask()[0] == document.body, 'document.body returned')
|
|
})
|
|
|
|
// TODO: add inputmask tests
|
|
})
|