aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinigami <[email protected]>2023-01-29 17:47:11 +0100
committerGitHub <[email protected]>2023-01-29 16:47:11 +0000
commit64f480d214dc0bd173b0921025c8a1ad76d12c0f (patch)
tree69e1ce95597354872b7c9479a06299287efd5caa
parent7bc4a099558318c690d0101dc4765c08dee2c840 (diff)
downloadfaker-64f480d214dc0bd173b0921025c8a1ad76d12c0f.tar.xz
faker-64f480d214dc0bd173b0921025c8a1ad76d12c0f.zip
test(system): add valid 0 for cron (#1787)
-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)
);