Do not render the breadcrumbs again in resize tests

There is no need to call "setDirectory" again in resize tests; it is
enough to simply resize them (and isolates them better to just test the
resizing behaviour).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2018-02-19 21:06:41 +01:00
parent a828e7b12a
commit 3850221ae1

View file

@ -315,9 +315,6 @@ describe('OCA.Files.BreadCrumb tests', function() {
// Menu is hidden
expect($crumbs.eq(0).hasClass('hidden')).toEqual(true);
// triggers resize implicitly
bc.setDirectory(dummyDir);
// simulate decrease
$('#controls').width(950);
bc._resize();