Skip to content

Commit 3878c5e

Browse files
committed
UK NIN tests
1 parent 58f1e3e commit 3878c5e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/qunit.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,25 @@
10091009
runTest(obj, 'ukutr');
10101010
});
10111011

1012+
});
1013+
1014+
test("UK NIN validation", function(){
1015+
1016+
clearForm();
1017+
1018+
var links = [
1019+
{val:'JX 49 54 09 A', isValid:true},
1020+
{val:'LA 22 26 04 B', isValid:true},
1021+
{val:'LC 34 39 51 C', isValid:true},
1022+
{val:'JX 49 54 09 Z', isValid:false},
1023+
{val:'JX 49 54 09 3', isValid:false},
1024+
{val:'ZZ495409A', isValid:false}
1025+
];
1026+
1027+
$.each(links, function(i, obj) {
1028+
runTest(obj, 'uknin');
1029+
});
1030+
10121031
});
10131032
// TODO: Write more tests...
10141033

0 commit comments

Comments
 (0)