git ssb

0+

cel-desktop / ssb-pkg



Tree: 65191f9a9664f013ebe726bb95a1a54b086e1bd5

Files: 65191f9a9664f013ebe726bb95a1a54b086e1bd5 / test / test-79-npm / cron / cron.js

293 bytesRaw
1'use strict';
2
3var CronJob = require('cron').CronJob;
4
5var counter = 0;
6
7new CronJob('* * * * * *', function () { // eslint-disable-line no-new
8 counter += 1;
9}, null, true, 'America/Los_Angeles');
10
11setTimeout(function () {
12 if (counter === 4) console.log('ok');
13 process.exit();
14}, 4500);
15

Built with git-ssb-web