{"action":"created","comment":{"url":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/comments/189815940","pull_request_review_id":122062711,"id":189815940,"diff_hunk":"@@ -0,0 +1,58 @@\n+// @flow\n+import UserSettings, {saveSettings, loadSettings} from '../../../src/app/userSettings'\n+import {describe, expect, it, after} from '../../helpers/dependencies'\n+import {tmpdir} from 'os'\n+import {join} from 'path'\n+import {readFileSync, writeFileSync, unlinkSync} from 'fs'\n+import {captureError} from '../../helpers/utils'\n+\n+describe('UserSettings', () => {\n+  const settingsPath = join(tmpdir(), 'settings.test.saving.json')\n+  const loadSettingsPath = join(tmpdir(), 'settings.test.loading.json')\n+  const invalidPath = join(tmpdir(), 'some')\n+\n+  describe('saves settings', () => {","path":"test/unit/app/userSettings.spec.js","position":14,"original_position":14,"commit_id":"b1398486d1c5a03ccd2d2e1a8bcd0666f2d7aa03","original_commit_id":"b1398486d1c5a03ccd2d2e1a8bcd0666f2d7aa03","user":{"login":"donce","id":1409983,"avatar_url":"https://avatars0.githubusercontent.com/u/1409983?v=4","gravatar_id":"","url":"https://api.github.com/users/donce","html_url":"https://github.com/donce","followers_url":"https://api.github.com/users/donce/followers","following_url":"https://api.github.com/users/donce/following{/other_user}","gists_url":"https://api.github.com/users/donce/gists{/gist_id}","starred_url":"https://api.github.com/users/donce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donce/subscriptions","organizations_url":"https://api.github.com/users/donce/orgs","repos_url":"https://api.github.com/users/donce/repos","events_url":"https://api.github.com/users/donce/events{/privacy}","received_events_url":"https://api.github.com/users/donce/received_events","type":"User","site_admin":false},"body":"Structure of specs are different from actual code structure - i.e. `saves settings` is behaviour of `saveSettings` function, not of `UserSettings` class.","created_at":"2018-05-22T08:29:49Z","updated_at":"2018-05-22T08:41:04Z","html_url":"https://github.com/MysteriumNetwork/mysterion/pull/171#discussion_r189815940","pull_request_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/171","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/comments/189815940"},"html":{"href":"https://github.com/MysteriumNetwork/mysterion/pull/171#discussion_r189815940"},"pull_request":{"href":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/171"}}},"pull_request":{"url":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/171","id":189399998,"html_url":"https://github.com/MysteriumNetwork/mysterion/pull/171","diff_url":"https://github.com/MysteriumNetwork/mysterion/pull/171.diff","patch_url":"https://github.com/MysteriumNetwork/mysterion/pull/171.patch","issue_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues/171","number":171,"state":"open","locked":false,"title":"Feature/mys 2 disconnect notifications","user":{"login":"shroomist","id":95058,"avatar_url":"https://avatars3.githubusercontent.com/u/95058?v=4","gravatar_id":"","url":"https://api.github.com/users/shroomist","html_url":"https://github.com/shroomist","followers_url":"https://api.github.com/users/shroomist/followers","following_url":"https://api.github.com/users/shroomist/following{/other_user}","gists_url":"https://api.github.com/users/shroomist/gists{/gist_id}","starred_url":"https://api.github.com/users/shroomist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shroomist/subscriptions","organizations_url":"https://api.github.com/users/shroomist/orgs","repos_url":"https://api.github.com/users/shroomist/repos","events_url":"https://api.github.com/users/shroomist/events{/privacy}","received_events_url":"https://api.github.com/users/shroomist/received_events","type":"User","site_admin":false},"body":"Basics for push notifications, UI coming with separate PR","created_at":"2018-05-21T14:45:26Z","updated_at":"2018-05-22T08:41:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f29517d9ca84e156cd5cf9daeb35985a24c8dc0","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Waldz","id":2713911,"avatar_url":"https://avatars1.githubusercontent.com/u/2713911?v=4","gravatar_id":"","url":"https://api.github.com/users/Waldz","html_url":"https://github.com/Waldz","followers_url":"https://api.github.com/users/Waldz/followers","following_url":"https://api.github.com/users/Waldz/following{/other_user}","gists_url":"https://api.github.com/users/Waldz/gists{/gist_id}","starred_url":"https://api.github.com/users/Waldz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Waldz/subscriptions","organizations_url":"https://api.github.com/users/Waldz/orgs","repos_url":"https://api.github.com/users/Waldz/repos","events_url":"https://api.github.com/users/Waldz/events{/privacy}","received_events_url":"https://api.github.com/users/Waldz/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/171/commits","review_comments_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/171/comments","review_comment_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues/171/comments","statuses_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/statuses/b1398486d1c5a03ccd2d2e1a8bcd0666f2d7aa03","head":{"label":"MysteriumNetwork:feature/MYS-2-disconnectNotifications","ref":"feature/MYS-2-disconnectNotifications","sha":"b1398486d1c5a03ccd2d2e1a8bcd0666f2d7aa03","user":{"login":"MysteriumNetwork","id":23056638,"avatar_url":"https://avatars3.githubusercontent.com/u/23056638?v=4","gravatar_id":"","url":"https://api.github.com/users/MysteriumNetwork","html_url":"https://github.com/MysteriumNetwork","followers_url":"https://api.github.com/users/MysteriumNetwork/followers","following_url":"https://api.github.com/users/MysteriumNetwork/following{/other_user}","gists_url":"https://api.github.com/users/MysteriumNetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/MysteriumNetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MysteriumNetwork/subscriptions","organizations_url":"https://api.github.com/users/MysteriumNetwork/orgs","repos_url":"https://api.github.com/users/MysteriumNetwork/repos","events_url":"https://api.github.com/users/MysteriumNetwork/events{/privacy}","received_events_url":"https://api.github.com/users/MysteriumNetwork/received_events","type":"Organization","site_admin":false},"repo":{"id":112330860,"name":"mysterion","full_name":"MysteriumNetwork/mysterion","owner":{"login":"MysteriumNetwork","id":23056638,"avatar_url":"https://avatars3.githubusercontent.com/u/23056638?v=4","gravatar_id":"","url":"https://api.github.com/users/MysteriumNetwork","html_url":"https://github.com/MysteriumNetwork","followers_url":"https://api.github.com/users/MysteriumNetwork/followers","following_url":"https://api.github.com/users/MysteriumNetwork/following{/other_user}","gists_url":"https://api.github.com/users/MysteriumNetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/MysteriumNetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MysteriumNetwork/subscriptions","organizations_url":"https://api.github.com/users/MysteriumNetwork/orgs","repos_url":"https://api.github.com/users/MysteriumNetwork/repos","events_url":"https://api.github.com/users/MysteriumNetwork/events{/privacy}","received_events_url":"https://api.github.com/users/MysteriumNetwork/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MysteriumNetwork/mysterion","description":"Mysterion is desktop application to access Mysterion Network - decentralized VPN built on blockchain.","fork":false,"url":"https://api.github.com/repos/MysteriumNetwork/mysterion","forks_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/forks","keys_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/teams","hooks_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/hooks","issue_events_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues/events{/number}","events_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/events","assignees_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/assignees{/user}","branches_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/branches{/branch}","tags_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/tags","blobs_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/refs{/sha}","trees_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/statuses/{sha}","languages_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/languages","stargazers_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/stargazers","contributors_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/contributors","subscribers_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/subscribers","subscription_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/subscription","commits_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/commits{/sha}","git_commits_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/commits{/sha}","comments_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/comments{/number}","issue_comment_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues/comments{/number}","contents_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/contents/{+path}","compare_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/merges","archive_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/downloads","issues_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues{/number}","pulls_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls{/number}","milestones_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/milestones{/number}","notifications_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/labels{/name}","releases_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/releases{/id}","deployments_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/deployments","created_at":"2017-11-28T12:12:23Z","updated_at":"2018-05-22T07:49:37Z","pushed_at":"2018-05-22T07:50:34Z","git_url":"git://github.com/MysteriumNetwork/mysterion.git","ssh_url":"git@github.com:MysteriumNetwork/mysterion.git","clone_url":"https://github.com/MysteriumNetwork/mysterion.git","svn_url":"https://github.com/MysteriumNetwork/mysterion","homepage":"https://mysterium.network/","size":9684,"stargazers_count":17,"watchers_count":17,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":6,"watchers":17,"default_branch":"master"}},"base":{"label":"MysteriumNetwork:master","ref":"master","sha":"89b9499b8e9746b7650255203b9c1b4c8637b4a7","user":{"login":"MysteriumNetwork","id":23056638,"avatar_url":"https://avatars3.githubusercontent.com/u/23056638?v=4","gravatar_id":"","url":"https://api.github.com/users/MysteriumNetwork","html_url":"https://github.com/MysteriumNetwork","followers_url":"https://api.github.com/users/MysteriumNetwork/followers","following_url":"https://api.github.com/users/MysteriumNetwork/following{/other_user}","gists_url":"https://api.github.com/users/MysteriumNetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/MysteriumNetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MysteriumNetwork/subscriptions","organizations_url":"https://api.github.com/users/MysteriumNetwork/orgs","repos_url":"https://api.github.com/users/MysteriumNetwork/repos","events_url":"https://api.github.com/users/MysteriumNetwork/events{/privacy}","received_events_url":"https://api.github.com/users/MysteriumNetwork/received_events","type":"Organization","site_admin":false},"repo":{"id":112330860,"name":"mysterion","full_name":"MysteriumNetwork/mysterion","owner":{"login":"MysteriumNetwork","id":23056638,"avatar_url":"https://avatars3.githubusercontent.com/u/23056638?v=4","gravatar_id":"","url":"https://api.github.com/users/MysteriumNetwork","html_url":"https://github.com/MysteriumNetwork","followers_url":"https://api.github.com/users/MysteriumNetwork/followers","following_url":"https://api.github.com/users/MysteriumNetwork/following{/other_user}","gists_url":"https://api.github.com/users/MysteriumNetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/MysteriumNetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MysteriumNetwork/subscriptions","organizations_url":"https://api.github.com/users/MysteriumNetwork/orgs","repos_url":"https://api.github.com/users/MysteriumNetwork/repos","events_url":"https://api.github.com/users/MysteriumNetwork/events{/privacy}","received_events_url":"https://api.github.com/users/MysteriumNetwork/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MysteriumNetwork/mysterion","description":"Mysterion is desktop application to access Mysterion Network - decentralized VPN built on blockchain.","fork":false,"url":"https://api.github.com/repos/MysteriumNetwork/mysterion","forks_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/forks","keys_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/teams","hooks_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/hooks","issue_events_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues/events{/number}","events_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/events","assignees_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/assignees{/user}","branches_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/branches{/branch}","tags_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/tags","blobs_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/refs{/sha}","trees_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/statuses/{sha}","languages_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/languages","stargazers_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/stargazers","contributors_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/contributors","subscribers_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/subscribers","subscription_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/subscription","commits_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/commits{/sha}","git_commits_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/git/commits{/sha}","comments_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/comments{/number}","issue_comment_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues/comments{/number}","contents_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/contents/{+path}","compare_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/merges","archive_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/downloads","issues_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues{/number}","pulls_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls{/number}","milestones_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/milestones{/number}","notifications_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/labels{/name}","releases_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/releases{/id}","deployments_url":"https://api.github.com/repos/MysteriumNetwork/mysterion/deployments","created_at":"2017-11-28T12:12:23Z","updated_at":"2018-05-22T07:49:37Z","pushed_at":"2018-05-22T07:50:34Z","git_url":"git://github.com/MysteriumNetwork/mysterion.git","ssh_url":"git@github.com:MysteriumNetwork/mysterion.git","clone_url":"https://github.com/MysteriumNetwork/mysterion.git","svn_url":"https://github.com/MysteriumNetwork/mysterion","homepage":"https://mysterium.network/","size":9684,"stargazers_count":17,"watchers_count":17,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":6,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/171"},"html":{"href":"https://github.com/MysteriumNetwork/mysterion/pull/171"},"issue":{"href":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues/171"},"comments":{"href":"https://api.github.com/repos/MysteriumNetwork/mysterion/issues/171/comments"},"review_comments":{"href":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/171/comments"},"review_comment":{"href":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MysteriumNetwork/mysterion/pulls/171/commits"},"statuses":{"href":"https://api.github.com/repos/MysteriumNetwork/mysterion/statuses/b1398486d1c5a03ccd2d2e1a8bcd0666f2d7aa03"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"donce"}}