Skip to content

Commit

Permalink
fix(vehicle): Make VIN number generation more accurate (#2765)
Browse files Browse the repository at this point in the history
Co-authored-by: DivisionByZero <leyla.jaehnig@gmx.de>
  • Loading branch information
lulunac27a and xDivisionByZerox authored Apr 26, 2024
1 parent 16ba43a commit 1f7568a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/modules/vehicle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class VehicleModule extends ModuleBase {
length: 1,
casing: 'upper',
exclude,
})}${this.faker.number.int({ min: 10000, max: 99999 })}`; // return five digit #
})}${this.faker.string.numeric({ length: 5, allowLeadingZeros: true })}`;
}

/**
Expand Down
6 changes: 3 additions & 3 deletions test/modules/__snapshots__/vehicle.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports[`vehicle > 42 > type 1`] = `"Extended Cab Pickup"`;

exports[`vehicle > 42 > vehicle 1`] = `"Ford V90"`;

exports[`vehicle > 42 > vin 1`] = `"CYRK551VKPAZ84919"`;
exports[`vehicle > 42 > vin 1`] = `"CYRK551VKPAZ82113"`;

exports[`vehicle > 42 > vrm 1`] = `"JY75EEB"`;

Expand All @@ -32,7 +32,7 @@ exports[`vehicle > 1211 > type 1`] = `"Wagon"`;

exports[`vehicle > 1211 > vehicle 1`] = `"Toyota Aventador"`;

exports[`vehicle > 1211 > vin 1`] = `"XW7ZNNSBNTUM84790"`;
exports[`vehicle > 1211 > vin 1`] = `"XW7ZNNSBNTUM84882"`;

exports[`vehicle > 1211 > vrm 1`] = `"YX29RRT"`;

Expand All @@ -50,6 +50,6 @@ exports[`vehicle > 1337 > type 1`] = `"Coupe"`;

exports[`vehicle > 1337 > vehicle 1`] = `"Dodge Volt"`;

exports[`vehicle > 1337 > vin 1`] = `"859FAH8ZR3JL21255"`;
exports[`vehicle > 1337 > vin 1`] = `"859FAH8ZR3JL19477"`;

exports[`vehicle > 1337 > vrm 1`] = `"GE24ING"`;

0 comments on commit 1f7568a

Please sign in to comment.