Test saved version via property as well as getField()
This commit is contained in:
parent
a3f4fe181f
commit
8f5d976479
1 changed files with 1 additions and 0 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue