DEV: Fix failing test

jquery.autoellipsis tries to automatically find the available space
which depends on multiple factors which may differ between the machines
where the tests are running.

Follow-up to commit 9c628f089792dbbc417a185c5933d6cbcd54dd31.
This commit is contained in:
Bianca Nenciu
2020-01-21 19:15:29 +02:00
parent 9c628f0897
commit fe6ff1b5ab

View File

@ -22,11 +22,11 @@ componentTest("default", {
}, },
test(assert) { test(assert) {
assert.equal( const text = find(".overflow")
find(".overflow") .text()
.text() .trim();
.trim(),
"Lorem ipsum dolor sit amet, consectetur adipiscing elit.\nFusce convallis faucibus tortor quis vestibulum. Phasellus pharetra dolor eget imperdiet..." assert.ok(text.startsWith("Lorem ipsum dolor sit amet"));
); assert.ok(text.endsWith("..."));
} }
}); });