@6degrees/node-cron-utils
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -60,3 +60,5 @@ class utils { | ||
// do nothing | ||
new_expression["seconds"] = `*/2`; | ||
if(expression["minutes"] == "*"){ | ||
new_expression["seconds"] = `*/2`; | ||
} | ||
} | ||
@@ -63,0 +65,0 @@ else{ // 5 |
{ | ||
"name": "@6degrees/node-cron-utils", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Utilities functions to manipulate node-cron expressions", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -17,3 +17,3 @@ | ||
test('testing * */1 * * * *', ()=>{ | ||
expect(hi.double("* */1 * * * *")).toBe("*/2 */2 * * * *") // not sure if it is correct | ||
expect(hi.double("* */1 * * * *")).toBe("* */2 * * * *") // not sure if it is correct | ||
}) | ||
@@ -42,3 +42,3 @@ | ||
test('testing */5 * * * *', ()=>{ | ||
expect(hi.double("*/5 * * * *")).toBe("*/2 */10 * * * *") // Not sure if this is correct | ||
expect(hi.double("*/5 * * * *")).toBe("* */10 * * * *") // Not sure if this is correct | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7930
122