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