ELECTRON-371 (#327)

- Fix FreeDiskSpace.exe path
This commit is contained in:
Keerthi Niranjan 2018-03-20 15:01:50 +05:30 committed by Vishwas Shashidhar
parent 6914f30151
commit 6a8592694e

View File

@ -86,8 +86,12 @@ describe('Tests for Search Utils', function() {
SearchUtilsAPI.path = './tp';
if (isWindowsOS) {
SearchUtilsAPI.path = 'A://test';
searchConfig.LIBRARY_CONSTANTS.FREE_DISK_SPACE = path.join(__dirname, '..',
"node_modules/electron-utils/FreeDiskSpace/bin/Release/FreeDiskSpace.exe");
}
SearchUtilsAPI.checkFreeSpace().catch(function (err) {
searchConfig.LIBRARY_CONSTANTS.FREE_DISK_SPACE = path.join(__dirname, '..',
"library/FreeDiskSpace.exe");
expect(checkFreeSpace).toHaveBeenCalled();
expect(err).toBeTruthy();
done();