Skip to content

Commit

Permalink
test(system): add valid 0 for cron (#1787)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored Jan 29, 2023
1 parent 7bc4a09 commit 64f480d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/system.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
Expand Down

0 comments on commit 64f480d

Please sign in to comment.