Interacting with the Facebook Transformer
✓ should attempt to uploadfile
✓ should update the response envelope
✓ should reply with a properly formatted response
✓ long request should reply with several payloads
✓ should handle an empty payload
✓ should handle only field payload
✓ should handle no fields
✓ should handle no title but yes text
✓ should handle title with more than 80 characters
✓ should promote field values in the absence of titles
✓ should be an emptry string when there are fields with only empty title/value
✓ should handle the absence of title, text, and fields
✓ should handle image_url
✓ should handle thumb_url
✓ should handle author_icon
✓ should handle footer_icon
✓ should handle fallback
✓ should extract a content url
✓ should reply with a properly formatted response
✓ should repalce escapable characters with unicode equivalents
Interacting with Bluemix via Slack
user says something hubot does not care about
✓ should not respond
Interacting with the IBM Cloud Formatter
Registering the listener
✓ should add a callback for the ibmcloud.formatter event
Picking the proper formatter
✓ should use the Slack formatter when the slack adapter is used
✓ should use the text formatter when an unkown adapter type is used
✓ should prepend robot's name to message when using fb adapter
✓ should not prepend robot's name to message when using non-fb adapter
Interacting with the Slack Transformer
✓ should attempt to uploadfile
✓ should emit a slack.attachment event
✓ > 50 attachments should emit a multiple slack.attachment events
✓ should reply with a properly formatted response
✓ should repalce escapable characters with unicode equivalents
Interacting with the Plain Text Transformer
✓ should not emit an event
✓ should attempt to uploadfile
✓ should format attachment titles and text
✓ should format attachment fields
✓ should reply with a properly formatted response
✓ should repalce escapable characters with unicode equivalents
Interacting with the Web Transformer
✓ should not emit an event
✓ should attempt to uploadfile
✓ should format attachment titles and text
✓ should format attachment fields
✓ should format attachment fields without the short property
✓ should format attachment fields with the short property
✓ should format attachment fields where only one field is short
✓ should format attachment fields where there is text before the table
✓ should format attachment images
✓ should repalce escapable characters with unicode equivalents
Coverage remained the same at 98.311% when pulling 81c964bb1eab9a9d50cb9448e842b1eb25a7c4b7 on issues/4 into 895091a237f958b5d5e843fe375b9650aa45b940 on master.
Coverage increased (+0.01%) to 98.322% when pulling e1c130a2f1a0fe14d62382c193bb58bafe676618 on issues/4 into 895091a237f958b5d5e843fe375b9650aa45b940 on master.
Fixes #4
Interacting with the Facebook Transformer ✓ should attempt to uploadfile ✓ should update the response envelope ✓ should reply with a properly formatted response ✓ long request should reply with several payloads ✓ should handle an empty payload ✓ should handle only field payload ✓ should handle no fields ✓ should handle no title but yes text ✓ should handle title with more than 80 characters ✓ should promote field values in the absence of titles ✓ should be an emptry string when there are fields with only empty title/value ✓ should handle the absence of title, text, and fields ✓ should handle image_url ✓ should handle thumb_url ✓ should handle author_icon ✓ should handle footer_icon ✓ should handle fallback ✓ should extract a content url ✓ should reply with a properly formatted response ✓ should repalce escapable characters with unicode equivalents
Interacting with Bluemix via Slack user says something hubot does not care about ✓ should not respond
Interacting with the IBM Cloud Formatter Registering the listener ✓ should add a callback for the ibmcloud.formatter event Picking the proper formatter ✓ should use the Slack formatter when the slack adapter is used ✓ should use the text formatter when an unkown adapter type is used ✓ should prepend robot's name to message when using fb adapter ✓ should not prepend robot's name to message when using non-fb adapter
Interacting with the Slack Transformer ✓ should attempt to uploadfile ✓ should emit a slack.attachment event ✓ > 50 attachments should emit a multiple slack.attachment events ✓ should reply with a properly formatted response ✓ should repalce escapable characters with unicode equivalents
Interacting with the Plain Text Transformer ✓ should not emit an event ✓ should attempt to uploadfile ✓ should format attachment titles and text ✓ should format attachment fields ✓ should reply with a properly formatted response ✓ should repalce escapable characters with unicode equivalents
Interacting with the Web Transformer ✓ should not emit an event ✓ should attempt to uploadfile ✓ should format attachment titles and text ✓ should format attachment fields ✓ should format attachment fields without the short property ✓ should format attachment fields with the short property ✓ should format attachment fields where only one field is short ✓ should format attachment fields where there is text before the table ✓ should format attachment images ✓ should repalce escapable characters with unicode equivalents
47 passing (225ms)