Skip to content

Commit

Permalink
WIP: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hosmelq committed Sep 26, 2019
1 parent a425c41 commit a603baf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions __tests__/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import test from 'ava';

import dnic from '../src';

const VALID_DNI = '001-280592-0025N';

test('shoud pass a valid dni', t => {
t.true(dnic(VALID_DNI));
});

0 comments on commit a603baf

Please sign in to comment.