Initial import from local backup (Documents-Playground/pakerpale)

This commit is contained in:
jeonghwa
2026-07-03 05:27:12 +09:00
commit 3e8d82ea89
4047 changed files with 557006 additions and 0 deletions

27
node_modules/node-cron/test/defer-start-test.js generated vendored Normal file
View File

@@ -0,0 +1,27 @@
'use strict';
var expect = require('expect.js');
var sinon = require('sinon');
var cron = require('../src/node-cron');
describe('defer a task', () => {
beforeEach(() => {
this.clock = sinon.useFakeTimers();
});
afterEach(() => {
this.clock.restore();
});
it('should defer start of a task', () => {
var executed = 0,
task = cron.schedule('* * * * *', () => {
executed++;
}, false);
this.clock.tick(1000 * 60);
task.start();
this.clock.tick(1001 * 60);
expect(executed).to.equal(1);
});
});