Test saved version via property as well as getField()

This commit is contained in:
Dan Stillman 2015-05-21 02:47:01 -04:00
parent a3f4fe181f
commit 8f5d976479

View file

@ -73,6 +73,7 @@ describe("Zotero.Item", function () {
var id = yield item.saveTx();
item = yield Zotero.Items.getAsync(id);
assert.equal(item.getField("version"), 1);
assert.equal(item.version, 1);
});
it("should save versionNumber for computerProgram", function () {