* Auto completre fix * Toast fixes * Autocomplete js fix * datatree mutation spec update * Datatree -added running api * rmeoved unused ref * Deletion time added * Community issues spec fix * AssertImportToast() update * QueryAbort case fix * Signature fix * update * UUID flaky fix * Pomises spec + toasts updates * Toasts updates * ErrorReporting spec fix * Scrolling mockdb fix * Bug tests name change for easy identification * bug spec file name update * JSfunc fix * Community issues table load time increase * AssertContains() reduced wiat time * AssertContains() update * timeout added to mysql crud * AssertContains revert * AllInputWidget trial fix * wait until table load ReadTableRowColumnData() * fix * testTimeout added * ReadTableRowColumnData() revert * path fix * WaitUntilTableLoad() revert * COmmunity issues row select fix * Faker added * wait time add for multiselect * Mulipart fix * Community issues spec fix * AllInput spec update * timeout 1 to 3 * update * update * EnterJSContext from JSEditor to PropPane ts * update * Removed unwanted comments * fix * UUID fix
22 lines
488 B
TypeScript
22 lines
488 B
TypeScript
import { faker } from "@faker-js/faker";
|
|
|
|
type imageTypes = "abstract" | "animals";
|
|
|
|
export class FakerHelper {
|
|
public GetCatImage() {
|
|
return faker.image.cats();
|
|
}
|
|
|
|
public GetRandomText(textLength = 10) {
|
|
return faker.random.alphaNumeric(textLength, { casing: "upper" });
|
|
}
|
|
|
|
public GetUSPhoneNumber() {
|
|
return faker.phone.number("(###) ###-####");
|
|
}
|
|
|
|
public GetRandomNumber(length = 6) {
|
|
return faker.random.numeric(length, {allowLeadingZeros: true});
|
|
}
|
|
}
|