8000 Modified test to check instance type of thrown error · github4f/node-cron@068ffce · GitHub
[go: up one dir, main page]

Skip to content

Commit 068ffce

Browse files
committed
Modified test to check instance type of thrown error
1 parent c01d91c commit 068ffce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test-cron.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ module.exports = testCase({
327327
job.stop();
328328
assert.throws(function() {
329329
job.setTime(time);
330-
});
330+
}, Error, '\'time\' must be an instance of CronTime.');
331331

332332
clock.restore();
333333
job.stop();

0 commit comments

Comments
 (0)
0