Remove test for moving existing target dir during data dir migration

Functionality removed in 0be67dbda5
This commit is contained in:
Dan Stillman 2016-12-14 03:36:35 -05:00
parent 2c9c057360
commit 7447525d75

View file

@ -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.