Skip to content

Commit d321189

Browse files
committed
Change case of static method.
Signed-off-by: Alexander Trauzzi <[email protected]>
1 parent 4dd4242 commit d321189

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/types/jobs/CronExpression.type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export class CronExpression {
9494
`${CronExpression.SecondsAndMinutesRegexText.source} ${CronExpression.SecondsAndMinutesRegexText.source} ${CronExpression.HoursRegexText.source} ${CronExpression.DayOfMonthRegexText.source} ${CronExpression.MonthRegexText.source} ${CronExpression.DayOfWeekRegexText.source}`,
9595
);
9696

97-
public static IsCronExpression(value: string) {
97+
public static isCronExpression(value: string) {
9898
return CronExpression.cronExpressionRegex.test(value);
9999
}
100100

src/types/jobs/Job.type.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ See the License for the specific language governing permissions and
1111
limitations under the License.
1212
*/
1313

14-
import { JobSchedule } from "./JobSchedule.type";
14+
15+
import { Schedule } from "./JobSchedule.type";
1516

1617
export interface Job<DataType = object | string> {
1718
name: string;
18-
schedule: JobSchedule;
19+
schedule: Schedule;
1920
data: {
2021
value: DataType;
2122
};

test/unit/jobs/cron.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ import {
2121

2222
describe("CRON Expressions", () => {
2323
it("Every minute string is valid", () => {
24-
expect(CronExpression.IsCronExpression("* * * * *")).toBe(true);
24+
expect(CronExpression.isCronExpression("* * * * *")).toBe(true);
2525
});
2626

2727
it("Every hour string is valid", () => {
28-
expect(CronExpression.IsCronExpression("0 * * * *")).toBe(true);
28+
expect(CronExpression.isCronExpression("0 * * * *")).toBe(true);
2929
});
3030

3131
it("Every third hour on Mondays string is valid", () => {
32-
expect(CronExpression.IsCronExpression("0 */3 * * 1")).toBe(true);
32+
expect(CronExpression.isCronExpression("0 */3 * * 1")).toBe(true);
3333
});
3434

3535
it("A fairly complicated string is valid", () => {
36-
expect(CronExpression.IsCronExpression("0/5 2,6,10,14,18,22 8-14 * 1")).toBe(true);
36+
expect(CronExpression.isCronExpression("0/5 2,6,10,14,18,22 8-14 * 1")).toBe(true);
3737
});
3838

3939
it("On second results in matching cron string", () => {

0 commit comments

Comments
 (0)