Skip to content

Commit 02f4b88

Browse files
committed
test: run only once
1 parent f7a6827 commit 02f4b88

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/vehicle.spec.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,10 @@ describe('vehicle', () => {
109109

110110
describe('vin()', () => {
111111
it('returns valid vin number', () => {
112-
for (let step = 0; step < 5; step++) {
113-
const vin = faker.vehicle.vin();
114-
expect(vin).toMatch(
115-
/^([A-HJ-NPR-Z0-9]{10}[A-HJ-NPR-Z0-9]{1}[A-HJ-NPR-Z0-9]{1}\d{5})$/
116-
);
117-
}
112+
const vin = faker.vehicle.vin();
113+
expect(vin).toMatch(
114+
/^([A-HJ-NPR-Z0-9]{10}[A-HJ-NPR-Z0-9]{1}[A-HJ-NPR-Z0-9]{1}\d{5})$/
115+
);
118116
});
119117
});
120118

0 commit comments

Comments
 (0)