From 98b6289bb94fee4cba9e5e605ea76e55a1d63128 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Thu, 28 Apr 2022 20:39:59 +0200 Subject: chore: remove deprecated methods from fake tests (#885) --- test/fake.spec.ts | 4 ++-- 1 file 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); }); -- cgit v1.2.3