{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/expect.js/issues/138","labels_url":"https://api.github.com/repos/Automattic/expect.js/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/expect.js/issues/138/comments","events_url":"https://api.github.com/repos/Automattic/expect.js/issues/138/events","html_url":"https://github.com/Automattic/expect.js/issues/138","id":88258656,"number":138,"title":"Value be Something OR SomethingElse","user":{"login":"alanjames1987","id":765326,"avatar_url":"https://avatars.githubusercontent.com/u/765326?v=3","gravatar_id":"","url":"https://api.github.com/users/alanjames1987","html_url":"https://github.com/alanjames1987","followers_url":"https://api.github.com/users/alanjames1987/followers","following_url":"https://api.github.com/users/alanjames1987/following{/other_user}","gists_url":"https://api.github.com/users/alanjames1987/gists{/gist_id}","starred_url":"https://api.github.com/users/alanjames1987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanjames1987/subscriptions","organizations_url":"https://api.github.com/users/alanjames1987/orgs","repos_url":"https://api.github.com/users/alanjames1987/repos","events_url":"https://api.github.com/users/alanjames1987/events{/privacy}","received_events_url":"https://api.github.com/users/alanjames1987/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-14T22:30:51Z","updated_at":"2015-09-20T10:01:14Z","closed_at":null,"body":"I'm trying to test that a value is one value or another. In either case it's considered passing but I have not been able to figure out how to test for this.\r\n\r\nDoes expect.js support this sort of assertion and if not how should I go about testing for it?"},"comment":{"url":"https://api.github.com/repos/Automattic/expect.js/issues/comments/141768791","html_url":"https://github.com/Automattic/expect.js/issues/138#issuecomment-141768791","issue_url":"https://api.github.com/repos/Automattic/expect.js/issues/138","id":141768791,"user":{"login":"panstav","id":4512989,"avatar_url":"https://avatars.githubusercontent.com/u/4512989?v=3","gravatar_id":"","url":"https://api.github.com/users/panstav","html_url":"https://github.com/panstav","followers_url":"https://api.github.com/users/panstav/followers","following_url":"https://api.github.com/users/panstav/following{/other_user}","gists_url":"https://api.github.com/users/panstav/gists{/gist_id}","starred_url":"https://api.github.com/users/panstav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panstav/subscriptions","organizations_url":"https://api.github.com/users/panstav/orgs","repos_url":"https://api.github.com/users/panstav/repos","events_url":"https://api.github.com/users/panstav/events{/privacy}","received_events_url":"https://api.github.com/users/panstav/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T10:01:14Z","updated_at":"2015-09-20T10:01:14Z","body":"I usually declare variables for each such option, especially when I have >= 3 of those. So for example you could write:\r\n\r\n```\r\nvar first = testValue === 1;\r\nvar second = testValue === 'abcd';\r\n\r\nexpect(actual).to.be(first || second);\r\n```"}}