Skip to content

Commit

Permalink
Updating test to respond to the changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Vargas committed Feb 7, 2023
1 parent ab0da4a commit f43301a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/DgiiRncValidatorTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

use Seisigma\DgiiRncValidator\DgiiRncValidator;
use Seisigma\DgiiRncValidator\helpers\Types;

test('check if the given string is a valid RNC', function () {
expect(DgiiRncValidator::validateRNC('123'))->toBeFalse()
Expand All @@ -10,8 +11,8 @@
});

test('check rncType return the type name', function () {
expect(DgiiRncValidator::rncType('123456789'))->toBe('RNC')
->and(DgiiRncValidator::rncType('12345678901'))->toBe('CEDULA');
expect(DgiiRncValidator::rncType('123456789'))->toBe(Types::RNC)
->and(DgiiRncValidator::rncType('12345678901'))->toBe(Types::CEDULA);
});

it('can return the details of an RNC if true', function () {
Expand Down

0 comments on commit f43301a

Please sign in to comment.