1 | describe('toLowerFirst', function(){
|
2 |
|
3 | var alphanum = require('../index').is.alphanum
|
4 |
|
5 | it('should invalidate other characters', function(){
|
6 |
|
7 | alphanum('ABc%')
|
8 | .should
|
9 | .equal(false)
|
10 |
|
11 | alphanum('ABc-d')
|
12 | .should
|
13 | .equal(false)
|
14 |
|
15 | alphanum('ABc%')
|
16 | .should
|
17 | .equal(false)
|
18 | })
|
19 |
|
20 | it('should validate alphanum strings', function(){
|
21 |
|
22 | alphanum('a0BZ')
|
23 | .should
|
24 | .equal(true)
|
25 | })
|
26 | }) |
\ | No newline at end of file |