Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
test: increase coverage for timers
  • Loading branch information
lrlna committed Dec 1, 2016
commit a5c78a2de629699b905acdb80e74b493f76625d7
18 changes: 18 additions & 0 deletions test/parallel/test-timers-clear-null-does-not-throw-error.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict';
require('../common');
const assert = require('assert');

// This test makes sure clearing timers with
// 'null' or no input does not throw error

assert.doesNotThrow(() => { clearInterval(null)});

assert.doesNotThrow(() => { clearInterval() });

assert.doesNotThrow(() => { clearTimeout(null) });

assert.doesNotThrow(() => { clearTimeout() });

assert.doesNotThrow(() => { clearInterval(null) });

assert.doesNotThrow(() => { clearInterval() });