Move version checking into Electron #91

Merged
alexliebowitz merged 2 commits from handle-version-in-electron into master 2017-04-28 09:24:11 +02:00
alexliebowitz commented 2017-04-27 08:59:20 +02:00 (Migrated from github.com)
No description provided.
lyoshenka (Migrated from github.com) reviewed 2017-04-27 14:45:13 +02:00
lyoshenka (Migrated from github.com) commented 2017-04-27 14:45:04 +02:00

is this the correct package.json to be putting this in? i thought app requirements go into app/package.json?

is this the correct package.json to be putting this in? i thought app requirements go into app/package.json?
lyoshenka commented 2017-04-27 15:08:42 +02:00 (Migrated from github.com)

Another question: how would I test this? Is it possible to write tests for this?

Another question: how would I test this? Is it possible to write tests for this?
kauffj commented 2017-04-27 23:05:56 +02:00 (Migrated from github.com)

@alexliebowitz please merge yourself after you review what @lyoshenka said

@alexliebowitz please merge yourself after you review what @lyoshenka said
alexliebowitz (Migrated from github.com) reviewed 2017-04-28 09:15:31 +02:00
alexliebowitz (Migrated from github.com) commented 2017-04-28 09:15:31 +02:00

Yup, just did npm install in the wrong directory. Fixed.

Yup, just did npm install in the wrong directory. Fixed.
alexliebowitz commented 2017-04-28 09:23:57 +02:00 (Migrated from github.com)

Re: testing, this is well suited to unit tests, but we don't have a framework on the Electron side yet. We ought to get something like Mocha or Spectron going.

Meanwhile, a quick and dirty (but still highly accurate) way to test the upgrade behavior when a new version is available would be to flip the local and remote versions on this line. That's how I did it.

Re: testing, this is well suited to unit tests, but we don't have a framework on the Electron side yet. We ought to get something like Mocha or Spectron going. Meanwhile, a quick and dirty (but still highly accurate) way to test the upgrade behavior when a new version is available would be to flip the local and remote versions on [this line](https://github.com/lbryio/lbry-app/pull/91/files#diff-3c56f1dfc265d93d754c52ea6397c36aR58). That's how I did it.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#91
No description provided.