Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.

Conversation

amaury1093
Copy link
Collaborator

No description provided.

@coveralls
Copy link

coveralls commented Sep 7, 2018

Pull Request Test Coverage Report for Build 113

  • 13 of 186 (6.99%) changed or added relevant lines in 9 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-3.8%) to 42.488%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/electron/src/index.ts 0 12 0.0%
packages/electron/src/isParityRunning.ts 0 14 0.0%
packages/electron/src/signerNewToken.ts 0 19 0.0%
packages/electron/src/getParityPath.ts 0 34 0.0%
packages/electron/src/runParity.ts 0 39 0.0%
packages/electron/src/fetchParity.ts 0 55 0.0%
Totals Coverage Status
Change from base Build 103: -3.8%
Covered Lines: 823
Relevant Lines: 1935

💛 - Coveralls

@amaury1093 amaury1093 merged commit cc1d2c5 into master Sep 8, 2018
@amaury1093 amaury1093 deleted the am-electron branch September 8, 2018 13:15
// testRegex: 'spec\\.(ts|tsx)$' // TODO Skip api/ tests for now, as it's still WIP
testRegex: 'packages/(abi|light.js|light.js-react)/.*spec\\.(ts|tsx)$'
testRegex:
'packages/(abi|electron|light.js|light.js-react)/.*spec\\.(ts|tsx)$'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still missing escaping the dot for light.js and light.js-react but it doesn't make a difference for all intents and purposes ^^

* Spawns a child process to run Parity.
*/
export async function runParity(
options: RunParityOptions = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs to be verified but I think that for example onParityError would be undefined if we just pass as argument to runParity {flags: []}

cf openethereum/fether@752ec5f

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, you're right.

*/
export async function fetchParity(
mainWindow: BrowserWindow,
options: FetchParityOptions = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto cf openethereum/fether@752ec5f
I think if we just call fetchParity({parityChannel: 'stable'}) it would crash because onProgress will be undefined and the function will try to call it

* @ignore
* @return Promise<string> - Resolves to a string which is the command to run parity.
*/
const doesParityExist = async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just thought that the function could probably be rewritten as return isParityInPath().catch(isParityInOs).catch(isParityInUserData).catch(e => { throw new Error('Parity not found')}

logger = _logger;
};

export default () => logger;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fwiw I think we could export default logger directly

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants