SEARCH-605

- Updated unit tests
This commit is contained in:
Keerthi Niranjan 2018-02-15 12:20:52 +05:30
parent ba342d571e
commit 0ee004ccf1
2 changed files with 4 additions and 1 deletions

View File

@ -59,7 +59,7 @@ describe('Tests for Search', function() {
tempBatchPath = path.join(userConfigDir, 'data', 'temp_batch_indexes');
dataFolderPath = path.join(userConfigDir, 'data');
if (fs.existsSync(dataFolderPath)) {
fs.unlinkSync(dataFolderPath)
deleteIndexFolders(dataFolderPath)
}
done();
});

View File

@ -33,6 +33,9 @@ describe('Tests for Search Utils', function() {
beforeAll(function (done) {
executionPath = path.join(__dirname, 'library');
if (!isMac) {
executionPath = path.join(__dirname, '..', 'library');
}
userConfigDir = path.join(__dirname, '..');
searchConfig = require('../js/search/searchConfig.js');
const { SearchUtils } = require('../js/search/searchUtils.js');