{"action":"created","comment":{"url":"https://api.github.com/repos/postmanlabs/postman-sandbox/pulls/comments/171823396","pull_request_review_id":100744511,"id":171823396,"diff_hunk":"@@ -39,4 +47,20 @@ describe('execution', function () {\n         expect(json.response).to.not.have.property('to');\n         expect(execution.response).to.have.property('to');\n     });\n+\n+    it('Negating a single assertion on pm.request should not negate the assertions following it.', function () {\n+        pm.request.to.not.be.null;\n+        pm.request.to.be.an('object');\n+        pm.request.to.not.be.undefined;\n+        pm.request.to.not.be.a('string');\n+        pm.request.to.be.an('object').to.have.property('url');","path":"test/unit/execution.test.js","position":25,"original_position":27,"commit_id":"eb3e2570bc03931036e5beb61f63713e02588095","original_commit_id":"afdefdd2978ef3f87455a61eb52f0b5793a1d391","user":{"login":"kunagpal","id":7289840,"avatar_url":"https://avatars3.githubusercontent.com/u/7289840?v=4","gravatar_id":"","url":"https://api.github.com/users/kunagpal","html_url":"https://github.com/kunagpal","followers_url":"https://api.github.com/users/kunagpal/followers","following_url":"https://api.github.com/users/kunagpal/following{/other_user}","gists_url":"https://api.github.com/users/kunagpal/gists{/gist_id}","starred_url":"https://api.github.com/users/kunagpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunagpal/subscriptions","organizations_url":"https://api.github.com/users/kunagpal/orgs","repos_url":"https://api.github.com/users/kunagpal/repos","events_url":"https://api.github.com/users/kunagpal/events{/privacy}","received_events_url":"https://api.github.com/users/kunagpal/received_events","type":"User","site_admin":false},"body":"`.that.has.property('url');`","created_at":"2018-03-02T11:21:44Z","updated_at":"2018-03-02T11:28:59Z","html_url":"https://github.com/postmanlabs/postman-sandbox/pull/273#discussion_r171823396","pull_request_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/pulls/273","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/postmanlabs/postman-sandbox/pulls/comments/171823396"},"html":{"href":"https://github.com/postmanlabs/postman-sandbox/pull/273#discussion_r171823396"},"pull_request":{"href":"https://api.github.com/repos/postmanlabs/postman-sandbox/pulls/273"}}},"pull_request":{"url":"https://api.github.com/repos/postmanlabs/postman-sandbox/pulls/273","id":172478765,"html_url":"https://github.com/postmanlabs/postman-sandbox/pull/273","diff_url":"https://github.com/postmanlabs/postman-sandbox/pull/273.diff","patch_url":"https://github.com/postmanlabs/postman-sandbox/pull/273.patch","issue_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/issues/273","number":273,"state":"open","locked":false,"title":"Correct chai assignment to pm.request.to and pm.response.to","user":{"login":"debjeet-sarkar","id":6427574,"avatar_url":"https://avatars2.githubusercontent.com/u/6427574?v=4","gravatar_id":"","url":"https://api.github.com/users/debjeet-sarkar","html_url":"https://github.com/debjeet-sarkar","followers_url":"https://api.github.com/users/debjeet-sarkar/followers","following_url":"https://api.github.com/users/debjeet-sarkar/following{/other_user}","gists_url":"https://api.github.com/users/debjeet-sarkar/gists{/gist_id}","starred_url":"https://api.github.com/users/debjeet-sarkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debjeet-sarkar/subscriptions","organizations_url":"https://api.github.com/users/debjeet-sarkar/orgs","repos_url":"https://api.github.com/users/debjeet-sarkar/repos","events_url":"https://api.github.com/users/debjeet-sarkar/events{/privacy}","received_events_url":"https://api.github.com/users/debjeet-sarkar/received_events","type":"User","site_admin":false},"body":"This ensures that the chai's assertion methods are correctly assigned to pm.request.to and pm.response.to, hence helping us to overcome a bug where once a test assertion was negated, caused the subsequent following assertions to get negated as well. \r\n\r\nhttps://github.com/postmanlabs/postman-app-support/issues/3690\r\n\r\nTo counter this we explicitly assign the top level chai's chain-able methods to the pm.request to and pm.request.to.not, same for pm.response.\r\n\r\nAdded chai assignment for pm.request.\r\nAdded test case for negation on pm.request.\r\n\r\nAdded chai assignment for pm.response.\r\nAdded test case for negation on pm.response.","created_at":"2018-03-02T11:16:39Z","updated_at":"2018-03-02T11:28:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f94dd0ae564d3ead71aa1d4be98024db0755744","assignee":{"login":"kunagpal","id":7289840,"avatar_url":"https://avatars3.githubusercontent.com/u/7289840?v=4","gravatar_id":"","url":"https://api.github.com/users/kunagpal","html_url":"https://github.com/kunagpal","followers_url":"https://api.github.com/users/kunagpal/followers","following_url":"https://api.github.com/users/kunagpal/following{/other_user}","gists_url":"https://api.github.com/users/kunagpal/gists{/gist_id}","starred_url":"https://api.github.com/users/kunagpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunagpal/subscriptions","organizations_url":"https://api.github.com/users/kunagpal/orgs","repos_url":"https://api.github.com/users/kunagpal/repos","events_url":"https://api.github.com/users/kunagpal/events{/privacy}","received_events_url":"https://api.github.com/users/kunagpal/received_events","type":"User","site_admin":false},"assignees":[{"login":"kunagpal","id":7289840,"avatar_url":"https://avatars3.githubusercontent.com/u/7289840?v=4","gravatar_id":"","url":"https://api.github.com/users/kunagpal","html_url":"https://github.com/kunagpal","followers_url":"https://api.github.com/users/kunagpal/followers","following_url":"https://api.github.com/users/kunagpal/following{/other_user}","gists_url":"https://api.github.com/users/kunagpal/gists{/gist_id}","starred_url":"https://api.github.com/users/kunagpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunagpal/subscriptions","organizations_url":"https://api.github.com/users/kunagpal/orgs","repos_url":"https://api.github.com/users/kunagpal/repos","events_url":"https://api.github.com/users/kunagpal/events{/privacy}","received_events_url":"https://api.github.com/users/kunagpal/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":491553395,"url":"https://api.github.com/repos/postmanlabs/postman-sandbox/labels/bug","name":"bug","color":"ee0701","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/pulls/273/commits","review_comments_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/pulls/273/comments","review_comment_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/issues/273/comments","statuses_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/statuses/eb3e2570bc03931036e5beb61f63713e02588095","head":{"label":"debjeet-sarkar:feature/corrected-chai-assignment","ref":"feature/corrected-chai-assignment","sha":"eb3e2570bc03931036e5beb61f63713e02588095","user":{"login":"debjeet-sarkar","id":6427574,"avatar_url":"https://avatars2.githubusercontent.com/u/6427574?v=4","gravatar_id":"","url":"https://api.github.com/users/debjeet-sarkar","html_url":"https://github.com/debjeet-sarkar","followers_url":"https://api.github.com/users/debjeet-sarkar/followers","following_url":"https://api.github.com/users/debjeet-sarkar/following{/other_user}","gists_url":"https://api.github.com/users/debjeet-sarkar/gists{/gist_id}","starred_url":"https://api.github.com/users/debjeet-sarkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debjeet-sarkar/subscriptions","organizations_url":"https://api.github.com/users/debjeet-sarkar/orgs","repos_url":"https://api.github.com/users/debjeet-sarkar/repos","events_url":"https://api.github.com/users/debjeet-sarkar/events{/privacy}","received_events_url":"https://api.github.com/users/debjeet-sarkar/received_events","type":"User","site_admin":false},"repo":{"id":123562037,"name":"postman-sandbox","full_name":"debjeet-sarkar/postman-sandbox","owner":{"login":"debjeet-sarkar","id":6427574,"avatar_url":"https://avatars2.githubusercontent.com/u/6427574?v=4","gravatar_id":"","url":"https://api.github.com/users/debjeet-sarkar","html_url":"https://github.com/debjeet-sarkar","followers_url":"https://api.github.com/users/debjeet-sarkar/followers","following_url":"https://api.github.com/users/debjeet-sarkar/following{/other_user}","gists_url":"https://api.github.com/users/debjeet-sarkar/gists{/gist_id}","starred_url":"https://api.github.com/users/debjeet-sarkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/debjeet-sarkar/subscriptions","organizations_url":"https://api.github.com/users/debjeet-sarkar/orgs","repos_url":"https://api.github.com/users/debjeet-sarkar/repos","events_url":"https://api.github.com/users/debjeet-sarkar/events{/privacy}","received_events_url":"https://api.github.com/users/debjeet-sarkar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/debjeet-sarkar/postman-sandbox","description":"Sandbox for Postman Scripts to run in NodeJS or Chrome","fork":true,"url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox","forks_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/forks","keys_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/teams","hooks_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/hooks","issue_events_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/events","assignees_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/tags","blobs_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/languages","stargazers_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/stargazers","contributors_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/contributors","subscribers_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/subscribers","subscription_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/subscription","commits_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/merges","archive_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/downloads","issues_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/labels{/name}","releases_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/releases{/id}","deployments_url":"https://api.github.com/repos/debjeet-sarkar/postman-sandbox/deployments","created_at":"2018-03-02T09:52:29Z","updated_at":"2018-03-02T09:52:31Z","pushed_at":"2018-03-02T11:23:56Z","git_url":"git://github.com/debjeet-sarkar/postman-sandbox.git","ssh_url":"git@github.com:debjeet-sarkar/postman-sandbox.git","clone_url":"https://github.com/debjeet-sarkar/postman-sandbox.git","svn_url":"https://github.com/debjeet-sarkar/postman-sandbox","homepage":null,"size":623,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"postmanlabs:develop","ref":"develop","sha":"b79aa0e14ded0683e751f34d8ca0a76d05c0f556","user":{"login":"postmanlabs","id":10251060,"avatar_url":"https://avatars2.githubusercontent.com/u/10251060?v=4","gravatar_id":"","url":"https://api.github.com/users/postmanlabs","html_url":"https://github.com/postmanlabs","followers_url":"https://api.github.com/users/postmanlabs/followers","following_url":"https://api.github.com/users/postmanlabs/following{/other_user}","gists_url":"https://api.github.com/users/postmanlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/postmanlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmanlabs/subscriptions","organizations_url":"https://api.github.com/users/postmanlabs/orgs","repos_url":"https://api.github.com/users/postmanlabs/repos","events_url":"https://api.github.com/users/postmanlabs/events{/privacy}","received_events_url":"https://api.github.com/users/postmanlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":75166275,"name":"postman-sandbox","full_name":"postmanlabs/postman-sandbox","owner":{"login":"postmanlabs","id":10251060,"avatar_url":"https://avatars2.githubusercontent.com/u/10251060?v=4","gravatar_id":"","url":"https://api.github.com/users/postmanlabs","html_url":"https://github.com/postmanlabs","followers_url":"https://api.github.com/users/postmanlabs/followers","following_url":"https://api.github.com/users/postmanlabs/following{/other_user}","gists_url":"https://api.github.com/users/postmanlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/postmanlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmanlabs/subscriptions","organizations_url":"https://api.github.com/users/postmanlabs/orgs","repos_url":"https://api.github.com/users/postmanlabs/repos","events_url":"https://api.github.com/users/postmanlabs/events{/privacy}","received_events_url":"https://api.github.com/users/postmanlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/postmanlabs/postman-sandbox","description":"Sandbox for Postman Scripts to run in NodeJS or Chrome","fork":false,"url":"https://api.github.com/repos/postmanlabs/postman-sandbox","forks_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/forks","keys_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/teams","hooks_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/hooks","issue_events_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/events","assignees_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/tags","blobs_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/languages","stargazers_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/stargazers","contributors_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/contributors","subscribers_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/subscribers","subscription_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/subscription","commits_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/merges","archive_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/downloads","issues_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/labels{/name}","releases_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/releases{/id}","deployments_url":"https://api.github.com/repos/postmanlabs/postman-sandbox/deployments","created_at":"2016-11-30T08:19:26Z","updated_at":"2018-02-08T16:21:08Z","pushed_at":"2018-03-02T11:23:58Z","git_url":"git://github.com/postmanlabs/postman-sandbox.git","ssh_url":"git@github.com:postmanlabs/postman-sandbox.git","clone_url":"https://github.com/postmanlabs/postman-sandbox.git","svn_url":"https://github.com/postmanlabs/postman-sandbox","homepage":null,"size":623,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":7,"open_issues":26,"watchers":6,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/postmanlabs/postman-sandbox/pulls/273"},"html":{"href":"https://github.com/postmanlabs/postman-sandbox/pull/273"},"issue":{"href":"https://api.github.com/repos/postmanlabs/postman-sandbox/issues/273"},"comments":{"href":"https://api.github.com/repos/postmanlabs/postman-sandbox/issues/273/comments"},"review_comments":{"href":"https://api.github.com/repos/postmanlabs/postman-sandbox/pulls/273/comments"},"review_comment":{"href":"https://api.github.com/repos/postmanlabs/postman-sandbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/postmanlabs/postman-sandbox/pulls/273/commits"},"statuses":{"href":"https://api.github.com/repos/postmanlabs/postman-sandbox/statuses/eb3e2570bc03931036e5beb61f63713e02588095"}},"author_association":"NONE"}}
{"actor":{"display_login":"kunagpal"}}