Temporarily disable test for non-integer getAsync()

This commit is contained in:
Dan Stillman 2017-06-05 03:00:15 -04:00
parent 71d636e8fb
commit b79ecfb5fe
2 changed files with 3 additions and 2 deletions

View File

@ -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})`);

View File

@ -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)');