Skip to content

Commit

Permalink
feat(DTFS2-7052): improve address test data
Browse files Browse the repository at this point in the history
  • Loading branch information
avaitonis committed Apr 23, 2024
1 parent e9750f4 commit ff5ac7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/support/generator/get-geospatial-addresses-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export class GetGeospatialAddressesGenerator extends AbstractGenerator<AddressVa

protected generateValues(): AddressValues {
return {
ORGANISATION_NAME: this.valueGenerator.word({ length: 5 }),
ORGANISATION_NAME: this.valueGenerator.sentence({ words: 2 }),
BUILDING_NAME: this.valueGenerator.word(),
BUILDING_NUMBER: this.valueGenerator.nonnegativeInteger().toString(),
THOROUGHFARE_NAME: this.valueGenerator.word({ length: 7 }),
THOROUGHFARE_NAME: this.valueGenerator.sentence({ words: 5 }),
DEPENDENT_LOCALITY: this.valueGenerator.word(),
POST_TOWN: this.valueGenerator.word(),
POSTCODE: this.valueGenerator.postcode(),
Expand Down
4 changes: 4 additions & 0 deletions test/support/generator/random-value-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export class RandomValueGenerator {
return this.chance.word({ length: options?.length });
}

sentence(options?: { words?: number }): string {
return this.chance.sentence({ words: options?.words });
}

httpsUrl(): string {
return this.chance.url({ protocol: 'https' });
}
Expand Down

0 comments on commit ff5ac7b

Please sign in to comment.