{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/ava/issues/765","repository_url":"https://api.github.com/repos/sindresorhus/ava","labels_url":"https://api.github.com/repos/sindresorhus/ava/issues/765/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/ava/issues/765/comments","events_url":"https://api.github.com/repos/sindresorhus/ava/issues/765/events","html_url":"https://github.com/sindresorhus/ava/issues/765","id":148814391,"number":765,"title":"tests always pass bug","user":{"login":"willin","id":1890238,"avatar_url":"https://avatars.githubusercontent.com/u/1890238?v=3","gravatar_id":"","url":"https://api.github.com/users/willin","html_url":"https://github.com/willin","followers_url":"https://api.github.com/users/willin/followers","following_url":"https://api.github.com/users/willin/following{/other_user}","gists_url":"https://api.github.com/users/willin/gists{/gist_id}","starred_url":"https://api.github.com/users/willin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willin/subscriptions","organizations_url":"https://api.github.com/users/willin/orgs","repos_url":"https://api.github.com/users/willin/repos","events_url":"https://api.github.com/users/willin/events{/privacy}","received_events_url":"https://api.github.com/users/willin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-16T04:10:57Z","updated_at":"2016-04-16T05:30:13Z","closed_at":null,"body":"## Description\r\n\r\n```js\r\ntest('View 200', (t) => {\r\n  server.inject({\r\n    method: 'GET',\r\n    url: '/login'\r\n  }, (response) => {\r\n    console.log(response.statusCode); // 200\r\n    t.deepEqual(response.statusCode, 789); // not equal\r\n  });\r\n});\r\n```\r\n\r\n```\r\nava -v\r\n\r\n  ✔ login › View 200\r\n  ✔ index › Redirect 302\r\n  ✔ login › Success 200\r\n  ✔ doc › Redirect 302\r\n200\r\n> |\r\n```\r\n\r\n## Environment\r\n\r\nv0.14.0\r\n\r\nNode.js v5.10.1\r\ndarwin 15.4.0\r\nhapi 13.2.1"},"comment":{"url":"https://api.github.com/repos/sindresorhus/ava/issues/comments/210739651","html_url":"https://github.com/sindresorhus/ava/issues/765#issuecomment-210739651","issue_url":"https://api.github.com/repos/sindresorhus/ava/issues/765","id":210739651,"user":{"login":"willin","id":1890238,"avatar_url":"https://avatars.githubusercontent.com/u/1890238?v=3","gravatar_id":"","url":"https://api.github.com/users/willin","html_url":"https://github.com/willin","followers_url":"https://api.github.com/users/willin/followers","following_url":"https://api.github.com/users/willin/following{/other_user}","gists_url":"https://api.github.com/users/willin/gists{/gist_id}","starred_url":"https://api.github.com/users/willin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willin/subscriptions","organizations_url":"https://api.github.com/users/willin/orgs","repos_url":"https://api.github.com/users/willin/repos","events_url":"https://api.github.com/users/willin/events{/privacy}","received_events_url":"https://api.github.com/users/willin/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T05:30:13Z","updated_at":"2016-04-16T05:30:13Z","body":"```js\r\ntest('View 200', (t) => {\r\n  server.inject({\r\n    method: 'GET',\r\n    url: '/login'\r\n  }, (response) => {\r\n    console.log(response.statusCode); // 200\r\n    t.deepEqual(response.statusCode, 789); // not equal\r\n  });\r\n});\r\n```\r\n\r\n```\r\nava -v\r\n\r\n  ✔ login › View 200\r\n  ✔ index › Redirect 302\r\n  ✔ login › Success 200\r\n  ✔ doc › Redirect 302\r\n200\r\n> |\r\n```\r\n\r\nshould fail\r\n\r\n\r\nand tried:\r\n\r\n```js\r\ntest.cb('View 200', (t) => {\r\n  server.inject({\r\n    method: 'GET',\r\n    url: '/login'\r\n  }, (response) => {\r\n    console.log(response.statusCode); // 200\r\n    t.deepEqual(response.statusCode, 789); // not equal\r\n    t.end(); // you need to call t.end() when using `test.cb`\r\n  });\r\n});\r\n```\r\n\r\n```\r\nava -v\r\n\r\n  ✔ index › Redirect 302\r\n  ✔ doc › Redirect 302\r\n  ✔ login › View 200\r\n200\r\n(node) Server.connections property is deprecated. Use Server.getConnections method instead.\r\n```\r\n\r\n"}}