Fix search addon build

This commit is contained in:
Daniel Imms
2018-09-21 07:31:06 -07:00
parent 57bbc817bb
commit 995e384980
2 changed files with 4 additions and 3 deletions
+1 -3
View File
@@ -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;
}
+3
View File
@@ -18,5 +18,8 @@
},
"include": [
"**/*.ts"
],
"exclude": [
"**/*.test.ts"
]
}