Remove "Error:" expected in error messages.

* "Error:" seems to have been injected into the message by Bluebird,
  but that's no longer the case
This commit is contained in:
Tom Najdek 2017-05-31 16:52:06 +01:00 committed by Dan Stillman
parent 063e13ef22
commit 4ec6925220
4 changed files with 18 additions and 18 deletions

View file

@ -146,7 +146,7 @@ describe("Zotero.Libraries", function() {
assert.equal(Zotero.Libraries.isEditable(group.libraryID), startState, 'reverts state');
});
it("should throw for invalid library ID", function() {
return assert.isRejected(Zotero.Libraries.setEditable(-1), /^Error: Invalid library ID /);
return assert.isRejected(Zotero.Libraries.setEditable(-1), /^Invalid library ID /);
});
});
describe("#isFilesEditable()", function() {
@ -176,7 +176,7 @@ describe("Zotero.Libraries", function() {
yield Zotero.Libraries.setEditable(group.libraryID, editableStartState);
});
it("should throw for invalid library ID", function* () {
return assert.isRejected(Zotero.Libraries.setFilesEditable(-1), /^Error: Invalid library ID /);
return assert.isRejected(Zotero.Libraries.setFilesEditable(-1), /^Invalid library ID /);
});
});
describe("#isGroupLibrary()", function() {