Fix tests

This commit is contained in:
Paris Kasidiaris
2017-12-12 08:46:06 +00:00
parent d81e304ce7
commit 6fec430e32
2 changed files with 3 additions and 3 deletions
+2 -3
View File
@@ -4,7 +4,6 @@
*/
import { SearchHelper } from './SearchHelper';
import { ITerminal } from '../../Interfaces';
/**
@@ -13,7 +12,7 @@ import { ITerminal } from '../../Interfaces';
* @param term Tne search term.
* @return Whether a result was found.
*/
function findNext(terminal: ITerminal, term: string): boolean {
function findNext(terminal: any, term: string): boolean {
if (!terminal._searchHelper) {
terminal.searchHelper = new SearchHelper(terminal);
}
@@ -26,7 +25,7 @@ function findNext(terminal: ITerminal, term: string): boolean {
* @param term Tne search term.
* @return Whether a result was found.
*/
Terminal.prototype.findPrevious = function(terminal: ITerminal, term: string): boolean {
function findPrevious(terminal: any, term: string): boolean {
if (!terminal._searchHelper) {
terminal.searchHelper = new SearchHelper(terminal);
}
+1
View File
@@ -29,6 +29,7 @@ export function winptyCompatInit(terminal): void {
(<any>nextLine).isWrapped = true;
}
});
}
export function apply(terminalConstructor) {
terminalConstructor.prototype.winptyCompatInit = function(): void {