Fix search addon build
This commit is contained in:
@@ -7,8 +7,6 @@ import { assert, expect } from 'chai';
|
||||
import * as search from './search';
|
||||
import { SearchHelper } from './SearchHelper';
|
||||
import { ISearchOptions, ISearchResult } from './Interfaces';
|
||||
import { Terminal } from '../../../lib/Terminal';
|
||||
|
||||
|
||||
class MockTerminalPlain {}
|
||||
|
||||
@@ -17,7 +15,7 @@ class MockTerminal {
|
||||
public searchHelper: TestSearchHelper;
|
||||
public cols: number;
|
||||
constructor(options: any) {
|
||||
this._core = new Terminal(options);
|
||||
this._core = new (require('../../../lib/Terminal')).Terminal(options);
|
||||
this.searchHelper = new TestSearchHelper(this as any);
|
||||
this.cols = options.cols;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user