UNPKG

documentid-checksum-validator

Version:
20 lines (16 loc) 643 B
import isSupportedDocId from '../src/isSupportedDocId.js'; import assert from 'assert'; describe('', function() { it('should return true for BR cpf', function() { assert.equal(true, isSupportedDocId('BR', 'cpf')); }); it('should return false for BR invalid doctype', function() { assert.equal(false, isSupportedDocId('BR', 'cpslf')); }); it('should return true for BR cnpj', function() { assert.equal(true, isSupportedDocId('BR', 'cNPJ')); }); it('should return false for RU invalid doctype', function() { assert.equal(false, isSupportedDocId('RU', 'cpf')); }); });