aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2022-04-28 20:39:59 +0200
committerGitHub <[email protected]>2022-04-28 20:39:59 +0200
commit98b6289bb94fee4cba9e5e605ea76e55a1d63128 (patch)
treee2b8931eaefec8e9731465ef75563ae6883ed396 /test
parent44b6edf0b9ae923222d6e23f0e33acccefbf5671 (diff)
downloadfaker-98b6289bb94fee4cba9e5e605ea76e55a1d63128.tar.xz
faker-98b6289bb94fee4cba9e5e605ea76e55a1d63128.zip
chore: remove deprecated methods from fake tests (#885)
Diffstat (limited to 'test')
-rw-r--r--test/fake.spec.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fake.spec.ts b/test/fake.spec.ts
index 40fe2ff1..16193cf7 100644
--- a/test/fake.spec.ts
+++ b/test/fake.spec.ts
@@ -11,7 +11,7 @@ describe('fake', () => {
it('replaces multiple tokens with random values for methods with no parameters', () => {
const name = faker.fake(
- '{{helpers.randomize}}{{helpers.randomize}}{{helpers.randomize}}'
+ '{{random.arrayElement}}{{random.arrayElement}}{{random.arrayElement}}'
);
expect(name).toMatch(/[abc]{3}/);
});
@@ -24,7 +24,7 @@ describe('fake', () => {
it('replaces a token with a random value for a method with an array parameter', () => {
const arr = ['one', 'two', 'three'];
const random = faker.fake(
- '{{helpers.randomize(["one", "two", "three"])}}'
+ '{{random.arrayElement(["one", "two", "three"])}}'
);
expect(arr).toContain(random);
});