Files
jquery-validation-mirror/test/additional/creditcard.js
2016-07-22 17:56:18 +02:00

8 lines
367 B
JavaScript

QUnit.test( "creditcard", function( assert ) {
var method = methodTest( "creditcard" );
assert.ok( method( "4111-1111-1111-1111" ), "Valid creditcard number" );
assert.ok( method( "4111 1111 1111 1111" ), "Valid creditcard number" );
assert.ok( !method( "41111" ), "Invalid creditcard number" );
assert.ok( !method( "asdf" ), "Invalid creditcard number" );
} );