mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
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:
@@ -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();
|
||||
});
|
||||
|
||||
});
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"testMatch": ["**/*.test.js"],
|
||||
"verbose": true,
|
||||
"testResultsProcessor": "../node_modules/jest-html-reporter"
|
||||
}
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"verbose": true,
|
||||
"testMatch": [
|
||||
"**/*.spectron.js"
|
||||
],
|
||||
"testResultsProcessor": "../../node_modules/jest-html-reporter"
|
||||
}
|
||||
Reference in New Issue
Block a user