make tests

This commit is contained in:
abraaoalves
2016-03-01 21:40:34 -03:00
parent 1ea67ceea4
commit 13d212dfb3
2 changed files with 14 additions and 5 deletions
@@ -1,5 +1,14 @@
/// <reference path="./jquery-truncate-html.d.ts" />
jQuery('<p>Stuff and <i>Nonsense</i></p>').truncate({
length: 13
}).html();
function truncateHtmlString(): string {
return $.truncate('<p>Stuff and <i>Nonsense</i></p>', {
length: 13
});
}
function truncateVirtualElement (): JQuery {
return $('<p>Stuff and <i>Nonsense</i></p>').truncate({
length: 13
});
}
+2 -2
View File
@@ -13,8 +13,8 @@ interface ITruncateOptions{
ellipsis?: string;
}
interface jQuery{
truncate(options: ITruncateOptions) : jQuery;
interface JQuery{
truncate(options: ITruncateOptions) : JQuery;
}
interface JQueryStatic {