Clear lastViewedFolder pref when resetting DB during tests

This commit is contained in:
Dan Stillman 2016-05-23 00:59:16 -04:00
parent 3905c98f93
commit 6b0be91bf4

View file

@ -497,6 +497,8 @@ var getTempDirectory = Zotero.Promise.coroutine(function* getTempDirectory() {
* any that were set at startup
*/
function resetDB(options = {}) {
Zotero.Prefs.clear('lastViewedFolder')
if (options.thisArg) {
options.thisArg.timeout(60000);
}