Skip to content

Commit f7f2c22

Browse files
committed
Update TestUtils.js
1 parent 9e9617c commit f7f2c22

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/TestUtils.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ export function destroyAllDataPermanently(fast) {
1818
}
1919
if (app.databaseController) {
2020
deletePromises.push(app.databaseController.deleteEverything(fast));
21-
}
22-
if (app.databaseAdapter) {
21+
} else if (app.databaseAdapter) {
2322
SchemaCache.clear();
2423
deletePromises.push(app.databaseAdapter.deleteAllClasses(fast));
2524
}

0 commit comments

Comments
 (0)