isValid should be a function.
testString: assert(typeof isValid=='function');
- text: isValid("GB82 WEST 1234 5698 7654 32") should return a boolean.
testString: assert(typeof isValid('GB82 WEST 1234 5698 7654 32')=='boolean');
- text: isValid("GB82 WEST 1234 5698 7654 32") should return true.
testString: assert.equal(isValid('GB82 WEST 1234 5698 7654 32'),true);
- text: isValid("GB82 WEST 1.34 5698 7654 32") should return false.
testString: assert.equal(isValid('GB82 WEST 1.34 5698 7654 32'),false);
- text: isValid("GB82 WEST 1234 5698 7654 325") should return false.
testString: assert.equal(isValid('GB82 WEST 1234 5698 7654 325'),false);
- text: isValid("GB82 TEST 1234 5698 7654 32") should return false.
testString: assert.equal(isValid('GB82 TEST 1234 5698 7654 32'),false);
- text: isValid("SA03 8000 0000 6080 1016 7519") should return true.
testString: assert.equal(isValid('SA03 8000 0000 6080 1016 7519'),true);
```