fix html in tests descriptions and datasets

This commit is contained in:
faissaloux
2023-11-07 17:35:42 +01:00
parent 0a680dd06e
commit 95ec0a82b2
3 changed files with 13 additions and 2 deletions

View File

@ -99,3 +99,13 @@ it('shows the correct description for arrays with many elements', function () {
expect($descriptions[0])->toBe('([1, 2, 3, …])');
});
it('shows the correct description of datasets with html', function () {
$descriptions = array_keys(DatasetsRepository::resolve([
[
'<div class="flex items-center"></div>',
],
], __FILE__));
expect($descriptions[0])->toBe('(\'<div class="flex items-center"></div>\')');
});