refactoring

- move the jest configuration files to the root directory
- remove squirrel installer startup check
- increase coverage for protocol handler
- update package.json as per the above
This commit is contained in:
Vishwas Shashidhar
2018-09-06 11:45:07 +05:30
parent b4c559c3ee
commit a28fd90b09
9 changed files with 73 additions and 37 deletions

View File

@@ -104,4 +104,15 @@ describe('protocol handler', function () {
});
it('should cache the protocol url if the protocol window is not defined yet', (done) => {
protocolHandler.setProtocolWindow(null);
const setSpy = jest.spyOn(protocolHandler, 'setProtocolUrl');
protocolHandler.setProtocolUrl(url);
protocolHandler.checkProtocolAction();
expect(setSpy).toHaveBeenCalled();
done();
});
});

View File

@@ -1,6 +0,0 @@
{
"testMatch": ["**/*.test.js"],
"verbose": true,
"testResultsProcessor": "../node_modules/jest-html-reporter"
}

View File

@@ -1,7 +0,0 @@
{
"verbose": true,
"testMatch": [
"**/*.spectron.js"
],
"testResultsProcessor": "../../node_modules/jest-html-reporter"
}