ember-text-test-helper
text
test helper that collapses spaces and newlines
Installation
ember install ember-text-test-helper
Usage
<span class="whitespace"> hello there </span>
; assert;
You can select one or many elements and they will all be collapsed into a single string. The test helper takes an argument of a string selector, or already selected elements via document.querySelector
and document.querySelectorAll
.
License
This project is licensed under the MIT License.