{"action":"created","issue":{"url":"https://api.github.com/repos/chaijs/chai/issues/377","labels_url":"https://api.github.com/repos/chaijs/chai/issues/377/labels{/name}","comments_url":"https://api.github.com/repos/chaijs/chai/issues/377/comments","events_url":"https://api.github.com/repos/chaijs/chai/issues/377/events","html_url":"https://github.com/chaijs/chai/issues/377","id":58730784,"number":377,"title":"Adding descriptions to assertions?","user":{"login":"tgoorden","id":2543154,"avatar_url":"https://avatars.githubusercontent.com/u/2543154?v=3","gravatar_id":"","url":"https://api.github.com/users/tgoorden","html_url":"https://github.com/tgoorden","followers_url":"https://api.github.com/users/tgoorden/followers","following_url":"https://api.github.com/users/tgoorden/following{/other_user}","gists_url":"https://api.github.com/users/tgoorden/gists{/gist_id}","starred_url":"https://api.github.com/users/tgoorden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgoorden/subscriptions","organizations_url":"https://api.github.com/users/tgoorden/orgs","repos_url":"https://api.github.com/users/tgoorden/repos","events_url":"https://api.github.com/users/tgoorden/events{/privacy}","received_events_url":"https://api.github.com/users/tgoorden/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chaijs/chai/labels/more-discussion-needed","name":"more-discussion-needed","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-24T12:20:27Z","updated_at":"2015-09-21T16:22:47Z","closed_at":null,"body":"When doing something like:\r\n`expect(something).to.exist`\r\n\r\nthe output of a failure tends to be:\r\n`AssertionError: expected undefined to exist`\r\n\r\nThis is not very helpful if there is trouble with the stack-trace, something you can run into e.g. when using Chai+Mocha+Velocity+Meteor.\r\n\r\nIdeally, there'd be something like an `as(label)` to add to the expectation:\r\n`expect(something).as('Foo').to.exist`\r\n\r\nwhich could then generate a more helpful output:\r\n`AssertionError: expected Foo to exist`"},"comment":{"url":"https://api.github.com/repos/chaijs/chai/issues/comments/142033237","html_url":"https://github.com/chaijs/chai/issues/377#issuecomment-142033237","issue_url":"https://api.github.com/repos/chaijs/chai/issues/377","id":142033237,"user":{"login":"abenhamdine","id":7466144,"avatar_url":"https://avatars.githubusercontent.com/u/7466144?v=3","gravatar_id":"","url":"https://api.github.com/users/abenhamdine","html_url":"https://github.com/abenhamdine","followers_url":"https://api.github.com/users/abenhamdine/followers","following_url":"https://api.github.com/users/abenhamdine/following{/other_user}","gists_url":"https://api.github.com/users/abenhamdine/gists{/gist_id}","starred_url":"https://api.github.com/users/abenhamdine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abenhamdine/subscriptions","organizations_url":"https://api.github.com/users/abenhamdine/orgs","repos_url":"https://api.github.com/users/abenhamdine/repos","events_url":"https://api.github.com/users/abenhamdine/events{/privacy}","received_events_url":"https://api.github.com/users/abenhamdine/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T16:22:47Z","updated_at":"2015-09-21T16:22:47Z","body":"I'm surprised, because in nodejs, i'm used to do  : \r\n    expect(something, 'Foo').to.be.\r\nWhy couldn't it be useful for your case ?"}}