Skip to content

Commit

Permalink
chore: apply review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Mar 15, 2022
1 parent fd0073f commit 41efc4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,10 @@ export class Helpers {
const RANGE_REP_REG = /(.)\{(\d+)\,(\d+)\}/;
const REP_REG = /(.)\{(\d+)\}/;
const RANGE_REG = /\[(\d+)\-(\d+)\]/;
let min, max, tmp, repetitions: number;
let min: number;
let max: number;
let tmp: number;
let repetitions: number;
let token = string.match(RANGE_REP_REG);
while (token !== null) {
min = parseInt(token[2]);
Expand Down
2 changes: 1 addition & 1 deletion test/fake.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('fake', () => {

it('does not allow undefined parameters', () => {
expect(() =>
// @ts-expect-error The parameter is required
// @ts-expect-error: The parameter is required
faker.fake()
).toThrowError(Error('string parameter is required!'));
});
Expand Down

0 comments on commit 41efc4a

Please sign in to comment.