12/28/2023 0 Comments Slack web chatPersonally I find it's always easiest and more compatible to use an ASCII range solution as opposed to tempting fate with a Unicode solution like in leclercdumombasin's answer. Or use any hex to ascii converter (ie: ASCII to Hex) to convert this: 2a 0c 68 61 78 0c 2a Solution: Copy the below fixed text to Slack and Edit: There is once again *no* spoon Not to fear, there is a simple Fix!įIX: Instead of using a Vertical Tab (hex character 0x0B), NOW use a Form Feed character (hex character 0x0C)! I'm also using typescript with nodejs for this app.It seems Google has updated the Chrome web browser controls (and possibly others) to show placeholders for many common ASCII control characters, INCLUDING the Vertical Tab character! This change has caused my original Solution below to break, now showing "unknown character" squares or in some cases whitespace breaks, where before it was non-breaking in most use cases (notably Slack!). my problem is not with the testing itself but with the mock since the tested code is reachable but i'm missing something on how to assert on it. ![]() This is a simplified version of my code as my code would be very large and i already tested all other aspects and i'm getting the desired responses. Import from './controller' Įxpect().toHaveBeenCalledTimes(1) I want to test one of the controllers that uses a model that in turns uses the slack web api. I have an app that's using the package through the named import WebClient.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |