aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/system.spec.ts6
1 files 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)
);