{"action":"created","issue":{"url":"https://api.github.com/repos/HenrikJoreteg/Happy.js/issues/27","labels_url":"https://api.github.com/repos/HenrikJoreteg/Happy.js/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/HenrikJoreteg/Happy.js/issues/27/comments","events_url":"https://api.github.com/repos/HenrikJoreteg/Happy.js/issues/27/events","html_url":"https://github.com/HenrikJoreteg/Happy.js/issues/27","id":28572635,"number":27,"title":"Better way to handle multiple test","user":{"login":"wraithgar","id":36607,"avatar_url":"https://avatars.githubusercontent.com/u/36607?v=3","gravatar_id":"","url":"https://api.github.com/users/wraithgar","html_url":"https://github.com/wraithgar","followers_url":"https://api.github.com/users/wraithgar/followers","following_url":"https://api.github.com/users/wraithgar/following{/other_user}","gists_url":"https://api.github.com/users/wraithgar/gists{/gist_id}","starred_url":"https://api.github.com/users/wraithgar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wraithgar/subscriptions","organizations_url":"https://api.github.com/users/wraithgar/orgs","repos_url":"https://api.github.com/users/wraithgar/repos","events_url":"https://api.github.com/users/wraithgar/events{/privacy}","received_events_url":"https://api.github.com/users/wraithgar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HenrikJoreteg/Happy.js/labels/feature","name":"feature","color":"53bf49"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-03-02T03:56:02Z","updated_at":"2015-11-11T03:01:10Z","closed_at":"2015-11-10T19:26:36Z","body":"If you want multiple tests on an input there should be a sensible way of doing that.  Currently the two approaches are:\r\n\r\n- if test is a function call it, if it's an array of functions call them\r\n- rethink how happy.methods works to allow some sort of chaining."},"comment":{"url":"https://api.github.com/repos/HenrikJoreteg/Happy.js/issues/comments/155644437","html_url":"https://github.com/HenrikJoreteg/Happy.js/issues/27#issuecomment-155644437","issue_url":"https://api.github.com/repos/HenrikJoreteg/Happy.js/issues/27","id":155644437,"user":{"login":"Abhinav1217","id":740584,"avatar_url":"https://avatars.githubusercontent.com/u/740584?v=3","gravatar_id":"","url":"https://api.github.com/users/Abhinav1217","html_url":"https://github.com/Abhinav1217","followers_url":"https://api.github.com/users/Abhinav1217/followers","following_url":"https://api.github.com/users/Abhinav1217/following{/other_user}","gists_url":"https://api.github.com/users/Abhinav1217/gists{/gist_id}","starred_url":"https://api.github.com/users/Abhinav1217/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abhinav1217/subscriptions","organizations_url":"https://api.github.com/users/Abhinav1217/orgs","repos_url":"https://api.github.com/users/Abhinav1217/repos","events_url":"https://api.github.com/users/Abhinav1217/events{/privacy}","received_events_url":"https://api.github.com/users/Abhinav1217/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T03:01:10Z","updated_at":"2015-11-11T03:01:10Z","body":"In many scenarios multiple tests are really needed. For example, I have worked on an scheduling app, which is filled with form components, almost all of them require multiple tests. That was before I worked with Happy, so we had written about 60 functions which could be chained. and used the functions which we needed. \r\n\r\nWhat I am saying that at present, happy is perfect for simple registration form validation type of scenarios, But not suitable for JS Apps, which require a more complex set of test, `IF` blocks are good but does not provide Code re-usability. or proper modular structure."}}