Skip to content

Commit

Permalink
test: merge tests
Browse files Browse the repository at this point in the history
  • Loading branch information
demipel8 committed Mar 11, 2022
1 parent 90e1af9 commit 7a6e23c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions test/vehicle.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,9 @@ describe('vehicle', () => {
);
});
});

describe('vin()', () => {
it('returns valid vin number', () => {
const vin = faker.vehicle.vin();
expect(vin).match(
/^([A-HJ-NPR-Z0-9]{10}[A-HJ-NPR-Z0-9]{1}[A-HJ-NPR-Z0-9]{1}\d{5})$/
);
});

it('is 17 characters long', () => {
for (let step = 0; step < 300000; step++) {
const vin = faker.vehicle.vin();
expect(vin).match(
Expand Down

0 comments on commit 7a6e23c

Please sign in to comment.