diff options
| -rw-r--r-- | test/fake.spec.ts | 4 |
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); }); |
