Skip to content

Commit f7a6827

Browse files
committed
test: fix tests
1 parent 951aa91 commit f7a6827

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/vehicle.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const seededRuns = [
2424
model: 'Colorado',
2525
type: 'Coupe',
2626
fuel: 'Electric',
27-
vin: '8J579HF1A7MK33575',
27+
vin: '8J579HF1A7MK33574',
2828
color: 'black',
2929
vrm: 'GO12HOL',
3030
bicycle: 'Cyclocross Bicycle',
@@ -38,7 +38,7 @@ const seededRuns = [
3838
model: '2',
3939
type: 'Wagon',
4040
fuel: 'Hybrid',
41-
vin: 'XFWS74Z1N5S678768',
41+
vin: 'XFWS74Z1N5S678767',
4242
color: 'azure',
4343
vrm: 'YL87FDZ',
4444
bicycle: 'Triathlon/Time Trial Bicycle',
@@ -109,9 +109,9 @@ describe('vehicle', () => {
109109

110110
describe('vin()', () => {
111111
it('returns valid vin number', () => {
112-
for (let step = 0; step < 300000; step++) {
112+
for (let step = 0; step < 5; step++) {
113113
const vin = faker.vehicle.vin();
114-
expect(vin).match(
114+
expect(vin).toMatch(
115115
/^([A-HJ-NPR-Z0-9]{10}[A-HJ-NPR-Z0-9]{1}[A-HJ-NPR-Z0-9]{1}\d{5})$/
116116
);
117117
}

0 commit comments

Comments
 (0)