diff --git a/test/system.spec.ts b/test/system.spec.ts index b2150b77a0f..9c6ba61d6f8 100644 --- a/test/system.spec.ts +++ b/test/system.spec.ts @@ -408,7 +408,7 @@ describe('system', () => { ); it('should return non-standard cron expressions', () => { - const validResults = ['0', '1', '2', '3', '4', '5', '6', '*', '@']; + const validResults = [...'0123456789'.split(''), '*', '@']; expect( faker.system.cron({ includeNonStandard: true })[0], 'generated cron, string should contain non-standard cron labels'