From 7447525d7596dc1a1ad08f9ebadcd74d0b4142ba Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 14 Dec 2016 03:36:35 -0500 Subject: [PATCH] Remove test for moving existing target dir during data dir migration Functionality removed in 0be67dbda58 --- test/tests/dataDirectoryTest.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/test/tests/dataDirectoryTest.js b/test/tests/dataDirectoryTest.js index 882a9eca8c..6d0cd77600 100644 --- a/test/tests/dataDirectoryTest.js +++ b/test/tests/dataDirectoryTest.js @@ -337,18 +337,6 @@ describe("Zotero.DataDirectory", function () { yield checkMigration(); }); - add("should move existing directory out of the way", function* () { - yield populateDataDirectory(oldDir); - yield OS.File.makeDir(newDir, { unixMode: 0o755 }); - yield Zotero.File.putContentsAsync(OS.Path.join(newDir, 'existing'), ''); - - yield Zotero.DataDirectory.migrate(oldDir, newDir); - yield checkMigration(); - - assert.isTrue(yield OS.File.exists(OS.Path.join(newDir + "-1", 'existing'))); - yield removeDir(newDir + "-1"); - }); - // Run all tests again without using mv // // On Windows these will just be duplicates of the above tests.