Skip to content
Snippets Groups Projects
Verified Commit 1b0af0a4 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: return error in test

parent a8d274d6
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ describe('DeadMansSwitch', function () {
const ms1 = Date.now();
const deadmansswitch = new DeadMansSwitch(100, () => {
new DeadMansSwitch(100, () => {
const ms2 = Date.now();
......@@ -38,12 +38,12 @@ describe('DeadMansSwitch', function () {
const diff = ms2 - ms1;
if (ms1 > ms2) {
done('timing error');
done(new Error('timing error'));
return;
}
if (diff < 600) {
done('to short ' + diff);
done(new Error('to short ' + diff));
return;
}
done();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment