diff --git a/test/system.spec.ts b/test/system.spec.ts index e6b15c6e3d4..fc36ce7859a 100644 --- a/test/system.spec.ts +++ b/test/system.spec.ts @@ -407,11 +407,11 @@ describe('system', () => { } ); - it('should return non-standard cron expressions', () => { - const validResults = ['1', '2', '3', '4', '5', '6', '*', '@']; + it('should be able to return non-standard cron expressions', () => { + const validResults = [...'0123456789'.split(''), '*', '@']; expect( faker.system.cron({ includeNonStandard: true })[0], - 'generated cron, string should contain non-standard cron labels' + 'generated cron, string should contain standard or non-standard cron labels' ).toSatisfy( (value) => !!validResults.find((result) => value === result) );