Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasyni committed Feb 10, 2015
1 parent 9e24100 commit 9873c42
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/test.js
@@ -0,0 +1,13 @@
var schedule = require('pomelo-scheduler');

var cronJob = function() {
console.log('doing %s', Date.now())
}

try {
schedule.scheduleJob("0 5 14/2 * * *", cronJob, {
name: 'cronJobExample'
});
} catch (e) {
console.log(e.stack);
}

0 comments on commit 9873c42

Please sign in to comment.