www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 8900a83b7dc476e1297e935ffae0c00106d5e264
parent 88ab129ffbb5e7c3b2e476fd116ca447edb3ae1f
Author: Aurimas Vinckevicius <aurimas.dev@gmail.com>
Date:   Wed, 16 Sep 2015 20:19:33 -0500

Fix Zotero.DataObject.key test

Diffstat:
Mtest/tests/dataObjectTest.js | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/test/tests/dataObjectTest.js b/test/tests/dataObjectTest.js @@ -6,13 +6,14 @@ describe("Zotero.DataObject", function() { describe("#key", function () { it("shouldn't update .loaded on get if unset", function* () { for (let type of types) { + let param; if (type == 'item') { - var param = 'book'; + param = 'book'; } let obj = new Zotero[Zotero.Utilities.capitalize(type)](param); obj.libraryID = Zotero.Libraries.userLibraryID; - assert.isNull(obj.key); - assert.isFalse(obj._loaded.primaryData); + assert.isNull(obj.key, 'key is null for ' + type); + assert.isFalse(obj._loaded.primaryData, 'primary data not loaded for ' + type); obj.key = Zotero.DataObjectUtilities.generateKey(); } })