Tweak test syntax that breaks with current version of chai-as-promised

* Second parameter should be an optional message, however is treated
  as a string that should be contained in the error message
This commit is contained in:
Tom Najdek 2017-05-31 17:20:36 +01:00 committed by Dan Stillman
parent 4ec6925220
commit a59b78e59e

View file

@ -4,7 +4,7 @@ describe("Zotero.Group", function () {
describe("#constructor()", function() { describe("#constructor()", function() {
it("should accept required parameters", function* () { it("should accept required parameters", function* () {
let group = new Zotero.Group(); let group = new Zotero.Group();
yield assert.isRejected(group.saveTx(), "fails without required parameters"); yield assert.isRejected(group.saveTx()); // fails without required parameters
let groupID = Zotero.Utilities.rand(10000, 1000000); let groupID = Zotero.Utilities.rand(10000, 1000000);
let groupName = "Test " + Zotero.Utilities.randomString(); let groupName = "Test " + Zotero.Utilities.randomString();