{"action":"created","issue":{"url":"https://api.github.com/repos/stampit-org/stampit/issues/143","labels_url":"https://api.github.com/repos/stampit-org/stampit/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/stampit-org/stampit/issues/143/comments","events_url":"https://api.github.com/repos/stampit-org/stampit/issues/143/events","html_url":"https://github.com/stampit-org/stampit/issues/143","id":93064126,"number":143,"title":"FAQ.md - collecting questions","user":{"login":"koresar","id":1622575,"avatar_url":"https://avatars.githubusercontent.com/u/1622575?v=3","gravatar_id":"","url":"https://api.github.com/users/koresar","html_url":"https://github.com/koresar","followers_url":"https://api.github.com/users/koresar/followers","following_url":"https://api.github.com/users/koresar/following{/other_user}","gists_url":"https://api.github.com/users/koresar/gists{/gist_id}","starred_url":"https://api.github.com/users/koresar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koresar/subscriptions","organizations_url":"https://api.github.com/users/koresar/orgs","repos_url":"https://api.github.com/users/koresar/repos","events_url":"https://api.github.com/users/koresar/events{/privacy}","received_events_url":"https://api.github.com/users/koresar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-07-05T01:20:27Z","updated_at":"2015-10-10T09:05:05Z","closed_at":null,"body":"People are often asking similar questions. We need to have a docs/FAQ.md.\r\n\r\nHere, in the issue, let's collect all the questions people usually ask."},"comment":{"url":"https://api.github.com/repos/stampit-org/stampit/issues/comments/147067229","html_url":"https://github.com/stampit-org/stampit/issues/143#issuecomment-147067229","issue_url":"https://api.github.com/repos/stampit-org/stampit/issues/143","id":147067229,"user":{"login":"boneskull","id":924465,"avatar_url":"https://avatars.githubusercontent.com/u/924465?v=3","gravatar_id":"","url":"https://api.github.com/users/boneskull","html_url":"https://github.com/boneskull","followers_url":"https://api.github.com/users/boneskull/followers","following_url":"https://api.github.com/users/boneskull/following{/other_user}","gists_url":"https://api.github.com/users/boneskull/gists{/gist_id}","starred_url":"https://api.github.com/users/boneskull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boneskull/subscriptions","organizations_url":"https://api.github.com/users/boneskull/orgs","repos_url":"https://api.github.com/users/boneskull/repos","events_url":"https://api.github.com/users/boneskull/events{/privacy}","received_events_url":"https://api.github.com/users/boneskull/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T09:05:05Z","updated_at":"2015-10-10T09:05:05Z","body":"Please provide an example of unit testing a Stamp which is composed.\r\n\r\n```js\r\nconst A = stampit({\r\n  init() {\r\n    // stuff\r\n  },\r\n  methods: {\r\n    // some methods\r\n  }\r\n});\r\n\r\nconst B = stampit({\r\n  init() {\r\n    // other stuff\r\n  },\r\n  methods: {\r\n    // other methods\r\n  }\r\n}).compose(A);\r\n```\r\n\r\nI've been hung up on this in one way or another for awhile.  How can I avoid test code duplication (or simply running the same assertions multiple times) and avoid tight coupling at once?\r\n\r\nty @koresar for your help on Gitter."}}