Fix test failures
This commit is contained in:
parent
daf4a8fe4d
commit
208d470531
|
@ -609,11 +609,8 @@ describe("Zotero.Item", function () {
|
||||||
|
|
||||||
// File should be flagged for upload
|
// File should be flagged for upload
|
||||||
// DEBUG: Is this necessary?
|
// DEBUG: Is this necessary?
|
||||||
assert.equal(
|
assert.equal(item.attachmentSyncState, Zotero.Sync.Storage.Local.SYNC_STATE_TO_UPLOAD);
|
||||||
(yield Zotero.Sync.Storage.Local.getSyncState(item.id)),
|
assert.isNull(item.attachmentSyncedHash);
|
||||||
Zotero.Sync.Storage.Local.SYNC_STATE_TO_UPLOAD
|
|
||||||
);
|
|
||||||
assert.isNull(yield Zotero.Sync.Storage.Local.getSyncedHash(item.id));
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -897,10 +894,9 @@ describe("Zotero.Item", function () {
|
||||||
var mtime = new Date().getTime();
|
var mtime = new Date().getTime();
|
||||||
var md5 = 'b32e33f529942d73bea4ed112310f804';
|
var md5 = 'b32e33f529942d73bea4ed112310f804';
|
||||||
|
|
||||||
yield Zotero.DB.executeTransaction(function* () {
|
item.attachmentSyncedModificationTime = mtime;
|
||||||
yield Zotero.Sync.Storage.Local.setSyncedModificationTime(item.id, mtime);
|
item.attachmentSyncedHash = md5;
|
||||||
yield Zotero.Sync.Storage.Local.setSyncedHash(item.id, md5);
|
yield item.saveTx({ skipAll: true });
|
||||||
});
|
|
||||||
|
|
||||||
var json = item.toJSON({
|
var json = item.toJSON({
|
||||||
syncedStorageProperties: true
|
syncedStorageProperties: true
|
||||||
|
|
|
@ -359,6 +359,7 @@ describe("Zotero.Utilities", function() {
|
||||||
});
|
});
|
||||||
describe("itemFromCSLJSON", function () {
|
describe("itemFromCSLJSON", function () {
|
||||||
it("should stably perform itemToCSLJSON -> itemFromCSLJSON -> itemToCSLJSON", function* () {
|
it("should stably perform itemToCSLJSON -> itemFromCSLJSON -> itemToCSLJSON", function* () {
|
||||||
|
this.timeout(10000);
|
||||||
let data = loadSampleData('citeProcJSExport');
|
let data = loadSampleData('citeProcJSExport');
|
||||||
|
|
||||||
for (let i in data) {
|
for (let i in data) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user