| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e47195c commit 1467c96
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,18 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + require('../common'); | ||
| 3 | + const assert = require('assert'); | ||
| 4 | + | ||
| 5 | + // This test makes sure clearing timers with | ||
| 6 | + // 'null' or no input does not throw error | ||
| 7 | + | ||
| 8 | + assert.doesNotThrow(() => clearInterval(null)); | ||
| 9 | + | ||
| 10 | + assert.doesNotThrow(() => clearInterval()); | ||
| 11 | + | ||
| 12 | + assert.doesNotThrow(() => clearTimeout(null)); | ||
| 13 | + | ||
| 14 | + assert.doesNotThrow(() => clearTimeout()); | ||
| 15 | + | ||
| 16 | + assert.doesNotThrow(() => clearImmediate(null)); | ||
| 17 | + | ||
| 18 | + assert.doesNotThrow(() => clearImmediate()); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments