Electron-47 - Renamed error message and added some done() callback

This commit is contained in:
Kiran Niranjan
2017-08-02 16:19:27 +05:30
committed by Kiran Niranjan
parent c8ca074f92
commit 173c2c692a
2 changed files with 3 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ document.addEventListener('DOMContentLoaded', () => {
spellChecker.initializeSpellChecker();
} catch (err) {
/* eslint-disable no-console */
console.error('requiring spellchecker module: ' + err);
console.error('unable to load the spell checker module, hence, skipping the spell check feature ' + err);
/* eslint-enable no-console */
}
});

View File

@@ -39,9 +39,11 @@ describe('Tests for spellChecker', () => {
done();
}).catch((err) => {
expect(err).toBeFalsy();
done();
});
}).catch((err) => {
expect(err).toBeFalsy();
done();
});
});