Rename remaining files to *Test.js

Closes #701
This commit is contained in:
Dan Stillman 2015-05-19 14:42:24 -04:00
parent 4ed15ddfc3
commit ac12d5891a
5 changed files with 0 additions and 0 deletions

14
test/tests/supportTest.js Normal file
View file

@ -0,0 +1,14 @@
describe("Support Functions for Unit Testing", function() {
describe("resetDB", function() {
it("should restore the DB to factory settings", function* () {
this.timeout(45000);
yield Zotero.Items.erase(1);
assert.isFalse(yield Zotero.Items.getAsync(1));
yield resetDB();
var item = yield Zotero.Items.getAsync(1);
assert.isObject(item);
yield item.loadItemData();
assert.equal(item.getField("url"), "https://www.zotero.org/support/quick_start_guide");
});
});
});