{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/pulls/comments/55966154","id":55966154,"diff_hunk":"@@ -0,0 +1,368 @@\n+/**\n+ * Created by Надежда on 06.03.2016.\n+ */\n+'use strict';\n+\n+var should = require('chai').should();\n+var mock = require('mock-fs');\n+var flow = require('../lib/flow');\n+var sinon = require('sinon');\n+\n+describe('Flow library', function () {\n+    var clocks = [];\n+\n+    describe('makeAsync function', function () {\n+        it('should give right result', function (done) {\n+            var asyncFunction = flow.makeAsync(\n+                function(a) {return a.a + a.b; }\n+            );\n+            asyncFunction({a: 1, b: 1}, function (error, data) {\n+                data.should.be.equal(2);\n+                done();\n+            })\n+        });\n+\n+        it('should be asynchronous', function (done) {\n+            var x = 1;\n+            var asyncFunction = flow.makeAsync(function() {\n+                x.should.be.equal(0);\n+                done();\n+            });\n+            asyncFunction();\n+            x--;\n+        });\n+\n+        it('should withstand a timeout', function () {\n+            var clock = sinon.useFakeTimers();","path":"tests/flow-test.js","position":36,"original_position":36,"commit_id":"74004fad76ddd8fb95606d76e7d6bd18a807925f","original_commit_id":"74004fad76ddd8fb95606d76e7d6bd18a807925f","user":{"login":"air-breathing","id":14912857,"avatar_url":"https://avatars.githubusercontent.com/u/14912857?v=3","gravatar_id":"","url":"https://api.github.com/users/air-breathing","html_url":"https://github.com/air-breathing","followers_url":"https://api.github.com/users/air-breathing/followers","following_url":"https://api.github.com/users/air-breathing/following{/other_user}","gists_url":"https://api.github.com/users/air-breathing/gists{/gist_id}","starred_url":"https://api.github.com/users/air-breathing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/air-breathing/subscriptions","organizations_url":"https://api.github.com/users/air-breathing/orgs","repos_url":"https://api.github.com/users/air-breathing/repos","events_url":"https://api.github.com/users/air-breathing/events{/privacy}","received_events_url":"https://api.github.com/users/air-breathing/received_events","type":"User","site_admin":false},"body":"пробовала сделать без this, с this.\r\nпишу в верхний discribe, хотя думаю дело не в этом.\r\nhttps://github.com/mochajs/mocha/issues/237  - такое вот нашла, подобная проблема.","created_at":"2016-03-14T08:15:13Z","updated_at":"2016-03-14T08:15:13Z","html_url":"https://github.com/urfu-2015/webdev-tasks-3/pull/6#discussion_r55966154","pull_request_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/pulls/comments/55966154"},"html":{"href":"https://github.com/urfu-2015/webdev-tasks-3/pull/6#discussion_r55966154"},"pull_request":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/pulls/6","id":61843467,"html_url":"https://github.com/urfu-2015/webdev-tasks-3/pull/6","diff_url":"https://github.com/urfu-2015/webdev-tasks-3/pull/6.diff","patch_url":"https://github.com/urfu-2015/webdev-tasks-3/pull/6.patch","issue_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/issues/6","number":6,"state":"open","locked":false,"title":"Гринь Надежда","user":{"login":"air-breathing","id":14912857,"avatar_url":"https://avatars.githubusercontent.com/u/14912857?v=3","gravatar_id":"","url":"https://api.github.com/users/air-breathing","html_url":"https://github.com/air-breathing","followers_url":"https://api.github.com/users/air-breathing/followers","following_url":"https://api.github.com/users/air-breathing/following{/other_user}","gists_url":"https://api.github.com/users/air-breathing/gists{/gist_id}","starred_url":"https://api.github.com/users/air-breathing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/air-breathing/subscriptions","organizations_url":"https://api.github.com/users/air-breathing/orgs","repos_url":"https://api.github.com/users/air-breathing/repos","events_url":"https://api.github.com/users/air-breathing/events{/privacy}","received_events_url":"https://api.github.com/users/air-breathing/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-06T14:03:20Z","updated_at":"2016-03-14T08:15:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fd3d78a7e3811a049b495753de2c28131867e0b7","assignee":{"login":"dzlk","id":894822,"avatar_url":"https://avatars.githubusercontent.com/u/894822?v=3","gravatar_id":"","url":"https://api.github.com/users/dzlk","html_url":"https://github.com/dzlk","followers_url":"https://api.github.com/users/dzlk/followers","following_url":"https://api.github.com/users/dzlk/following{/other_user}","gists_url":"https://api.github.com/users/dzlk/gists{/gist_id}","starred_url":"https://api.github.com/users/dzlk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzlk/subscriptions","organizations_url":"https://api.github.com/users/dzlk/orgs","repos_url":"https://api.github.com/users/dzlk/repos","events_url":"https://api.github.com/users/dzlk/events{/privacy}","received_events_url":"https://api.github.com/users/dzlk/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/pulls/6/commits","review_comments_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/pulls/6/comments","review_comment_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/issues/6/comments","statuses_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/statuses/74004fad76ddd8fb95606d76e7d6bd18a807925f","head":{"label":"air-breathing:master","ref":"master","sha":"74004fad76ddd8fb95606d76e7d6bd18a807925f","user":{"login":"air-breathing","id":14912857,"avatar_url":"https://avatars.githubusercontent.com/u/14912857?v=3","gravatar_id":"","url":"https://api.github.com/users/air-breathing","html_url":"https://github.com/air-breathing","followers_url":"https://api.github.com/users/air-breathing/followers","following_url":"https://api.github.com/users/air-breathing/following{/other_user}","gists_url":"https://api.github.com/users/air-breathing/gists{/gist_id}","starred_url":"https://api.github.com/users/air-breathing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/air-breathing/subscriptions","organizations_url":"https://api.github.com/users/air-breathing/orgs","repos_url":"https://api.github.com/users/air-breathing/repos","events_url":"https://api.github.com/users/air-breathing/events{/privacy}","received_events_url":"https://api.github.com/users/air-breathing/received_events","type":"User","site_admin":false},"repo":{"id":53110198,"name":"webdev-tasks-3","full_name":"air-breathing/webdev-tasks-3","owner":{"login":"air-breathing","id":14912857,"avatar_url":"https://avatars.githubusercontent.com/u/14912857?v=3","gravatar_id":"","url":"https://api.github.com/users/air-breathing","html_url":"https://github.com/air-breathing","followers_url":"https://api.github.com/users/air-breathing/followers","following_url":"https://api.github.com/users/air-breathing/following{/other_user}","gists_url":"https://api.github.com/users/air-breathing/gists{/gist_id}","starred_url":"https://api.github.com/users/air-breathing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/air-breathing/subscriptions","organizations_url":"https://api.github.com/users/air-breathing/orgs","repos_url":"https://api.github.com/users/air-breathing/repos","events_url":"https://api.github.com/users/air-breathing/events{/privacy}","received_events_url":"https://api.github.com/users/air-breathing/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/air-breathing/webdev-tasks-3","description":"","fork":true,"url":"https://api.github.com/repos/air-breathing/webdev-tasks-3","forks_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/forks","keys_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/teams","hooks_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/hooks","issue_events_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/issues/events{/number}","events_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/events","assignees_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/assignees{/user}","branches_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/branches{/branch}","tags_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/tags","blobs_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/git/refs{/sha}","trees_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/statuses/{sha}","languages_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/languages","stargazers_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/stargazers","contributors_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/contributors","subscribers_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/subscribers","subscription_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/subscription","commits_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/commits{/sha}","git_commits_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/git/commits{/sha}","comments_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/comments{/number}","issue_comment_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/issues/comments{/number}","contents_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/contents/{+path}","compare_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/merges","archive_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/downloads","issues_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/issues{/number}","pulls_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/pulls{/number}","milestones_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/milestones{/number}","notifications_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/labels{/name}","releases_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/releases{/id}","deployments_url":"https://api.github.com/repos/air-breathing/webdev-tasks-3/deployments","created_at":"2016-03-04T05:34:44Z","updated_at":"2016-03-06T14:02:07Z","pushed_at":"2016-03-14T04:47:49Z","git_url":"git://github.com/air-breathing/webdev-tasks-3.git","ssh_url":"git@github.com:air-breathing/webdev-tasks-3.git","clone_url":"https://github.com/air-breathing/webdev-tasks-3.git","svn_url":"https://github.com/air-breathing/webdev-tasks-3","homepage":null,"size":13,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"urfu-2015:master","ref":"master","sha":"c3e314aee6efb6afe54c8e5a1235d04a5597c21b","user":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"repo":{"id":53043103,"name":"webdev-tasks-3","full_name":"urfu-2015/webdev-tasks-3","owner":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urfu-2015/webdev-tasks-3","description":"Задача к лекции «Тесты» – «Тесты»","fork":false,"url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3","forks_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/forks","keys_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/teams","hooks_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/hooks","issue_events_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/events","assignees_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/tags","blobs_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/languages","stargazers_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/stargazers","contributors_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/contributors","subscribers_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/subscribers","subscription_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/subscription","commits_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/merges","archive_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/downloads","issues_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/releases{/id}","deployments_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/deployments","created_at":"2016-03-03T10:50:13Z","updated_at":"2016-03-10T04:48:43Z","pushed_at":"2016-03-14T04:47:50Z","git_url":"git://github.com/urfu-2015/webdev-tasks-3.git","ssh_url":"git@github.com:urfu-2015/webdev-tasks-3.git","clone_url":"https://github.com/urfu-2015/webdev-tasks-3.git","svn_url":"https://github.com/urfu-2015/webdev-tasks-3","homepage":"","size":2,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":24,"forks":32,"open_issues":24,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/pulls/6"},"html":{"href":"https://github.com/urfu-2015/webdev-tasks-3/pull/6"},"issue":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/issues/6"},"comments":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-3/statuses/74004fad76ddd8fb95606d76e7d6bd18a807925f"}}}}