commit b79ecfb5fea512f94b4bc4d2ebdb552b85ae6907
parent 71d636e8fb18a31c617544899c8df6f7f31c71f0
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 5 Jun 2017 03:00:15 -0400
Temporarily disable test for non-integer getAsync()
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/data/dataObjects.js b/chrome/content/zotero/xpcom/data/dataObjects.js
@@ -174,7 +174,7 @@ Zotero.DataObjects.prototype.getAsync = Zotero.Promise.coroutine(function* (ids,
let id = ids[i];
if (!Number.isInteger(id)) {
- // TEMP
+ // TEMP: Re-enable test when removed
Zotero.logError(`${this._ZDO_object} ID '${id}' is not an integer (${typeof id})`);
id = parseInt(id);
//throw new Error(`${this._ZDO_object} ID '${id}' is not an integer (${typeof id})`);
diff --git a/test/tests/dataObjectsTest.js b/test/tests/dataObjectsTest.js
@@ -10,7 +10,8 @@ describe("Zotero.DataObjects", function () {
});
describe("#getAsync()", function () {
- it("show throw if passed an invalid id", function* () {
+ // TEMP: Currently just a warning
+ it.skip("show throw if passed an invalid id", function* () {
var e = yield getPromiseError(Zotero.Items.getAsync("[Object]"));
assert.ok(e);
assert.include(e.message, '(string)');