This repository was archived by the owner on May 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Add @parity/electron #14
Merged
Merged
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
fe0791e
Add electron package
amaury1093 206a47e
Add some tests
amaury1093 67fa654
Update README.md
amaury1093 937a957
Make docs pretty
amaury1093 d249f6f
Update docs
amaury1093 5bb5fa4
Update docs
amaury1093 f3c5e36
Update docs
amaury1093 a1c568b
Update docs
amaury1093 a16645f
Bump version
amaury1093 45a0f03
Update README
amaury1093 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add some tests
- Loading branch information
commit 206a47ef5dcc4732bce2e7da999c57de93551b49
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| const baseConfig = require('../../jest.config'); | ||
|
|
||
| module.exports = baseConfig; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| // Copyright 2015-2018 Parity Technologies (UK) Ltd. | ||
| // This file is part of Parity. | ||
| // | ||
| // SPDX-License-Identifier: MIT | ||
|
|
||
| import { checkClockSync } from './checkClockSync'; | ||
|
|
||
| jest.mock('sntp', () => ({ time: () => Promise.resolve({ t: 1234 }) })); | ||
|
|
||
| it('should return the correct syncness', async done => { | ||
| expect(await checkClockSync()).toEqual({ | ||
| isClockSync: true, | ||
| timeDrift: 1234 | ||
| }); | ||
| done(); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // Copyright 2015-2018 Parity Technologies (UK) Ltd. | ||
| // This file is part of Parity. | ||
| // | ||
| // SPDX-License-Identifier: MIT | ||
|
|
||
| import logCommand from './logCommand'; | ||
|
|
||
| test('should correctly log a command', () => { | ||
| expect(logCommand('foo', ['-a', '23'])).toBe('Running "foo -a 23".'); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| // Copyright 2015-2018 Parity Technologies (UK) Ltd. | ||
| // This file is part of Parity. | ||
| // | ||
| // SPDX-License-Identifier: MIT | ||
|
|
||
| import getLogger, { setLogger } from './logger'; | ||
|
|
||
| test('should correctly set logger', () => { | ||
| const logger = () => () => { | ||
| /* Do nothing. */ | ||
| }; | ||
| setLogger(logger); | ||
| expect(getLogger()).toBe(logger); | ||
| }); |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.jsandlight.js-reactbut it doesn't make a difference for all intents and purposes ^^