mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 20:43:19 +08:00
d086888549
This will make it simpler to work with this code. This also can make this code more stable and increase stability of our test suite. Cooked message now will be available immediately after cooking, it wasn't the case before: await message.cook(); const cooked = message.cooked; This also removes a call to `message.cook()` from message fabricator. Alternatively we may leave the call there and make the fabricator function async, but I fill it's better this way. If someone needs to test something related to cooked message, they can either pass cooked text to fabricator: message = fabricators.message({ cooked: "<p>cooked</p>" }); or call `message.cook()` after fabrication: message = fabricators.message({ message: "raw message" }); await message.cook() |
||
---|---|---|
.. | ||
chat | ||
discourse-details | ||
discourse-lazy-videos | ||
discourse-local-dates | ||
discourse-narrative-bot | ||
discourse-presence | ||
poll | ||
styleguide |