Properly name debounce test file

This commit is contained in:
Denis Sokolov
2015-12-16 09:38:22 +02:00
parent 3a605075a6
commit e5f4e76f6b
+14
View File
@@ -0,0 +1,14 @@
/// <reference path="debounce.d.ts" />
import debounce = require("debounce");
const doThings = () => 1;
debounce(function(){ doThings(); })();
debounce(function(){ doThings(); }, 1000)();
debounce(function(a: string){ doThings(); }, 1000)("foo");
// Immediate true should return the value
const imm1: number = (debounce((x: number) => x * 2, 100, true))(2);