Skip to content

Commit 64f480d

Browse files
authored
test(system): add valid 0 for cron (#1787)
1 parent 7bc4a09 commit 64f480d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/system.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,11 +407,11 @@ describe('system', () => {
407407
}
408408
);
409409

410-
it('should return non-standard cron expressions', () => {
411-
const validResults = ['1', '2', '3', '4', '5', '6', '*', '@'];
410+
it('should be able to return non-standard cron expressions', () => {
411+
const validResults = [...'0123456789'.split(''), '*', '@'];
412412
expect(
413413
faker.system.cron({ includeNonStandard: true })[0],
414-
'generated cron, string should contain non-standard cron labels'
414+
'generated cron, string should contain standard or non-standard cron labels'
415415
).toSatisfy(
416416
(value) => !!validResults.find((result) => value === result)
417417
);

0 commit comments

Comments
 (0)