Create unit tests for the PromptCodeBlockExtractor
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3488376. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) Related to !321 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Currently there is no testing that the output of the PromptCodeBlockExtractor service is actually correct, we need to have extensive testing with multiple different strings being tested.</p> <p>See the testing for PromptJsonDecoderTest for ideas.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Add tests and test things like having ```html inside a text, having it start with <br> Also do the same for yaml, json, css<br> Test it with streaming</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue