From 64f480d214dc0bd173b0921025c8a1ad76d12c0f Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sun, 29 Jan 2023 17:47:11 +0100 Subject: test(system): add valid 0 for cron (#1787) --- test/system.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/system.spec.ts b/test/system.spec.ts index e6b15c6e..fc36ce78 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) ); -- cgit v1.2.3