File: creditcard.js

package info (click to toggle)
node-jquery-validation 1.21.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,388 kB
  • sloc: javascript: 8,943; php: 29; makefile: 8
file content (7 lines) | stat: -rw-r--r-- 367 bytes parent folder | download
1
2
3
4
5
6
7
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" );
} );