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:
parent
2fd3fa20df
commit
1da92fd5da
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue