]> source.dussan.org Git - nextcloud-server.git/commit
Move adding test files to "beforeEach()"
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Thu, 11 Jan 2018 01:36:00 +0000 (02:36 +0100)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Thu, 11 Jan 2018 12:25:41 +0000 (13:25 +0100)
commit65bba286b6a2b6942839865216f6bcb332e3d1c7
tree310c281479a6d1e45db420c52dad4a7d0c0795ea
parent1fb3e38574661fc4ece099662d7138e537c92a55
Move adding test files to "beforeEach()"

All the tests in the "Renaming files" section added the test files,
although those calling "doRename()" added them by setting a path for the
file too. However, the path is ignored in the other tests, so adding the
files can be unified and moved to "beforeEach()".

This would be needed, for example, to show the details view for a file
before calling "doRename()".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
apps/files/tests/js/filelistSpec.js