From a59b78e59eb23d443515089b803faaf239bae0b7 Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Wed, 31 May 2017 17:20:36 +0100 Subject: [PATCH] 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 --- test/tests/groupTest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tests/groupTest.js b/test/tests/groupTest.js index 743567969..aea36834a 100644 --- a/test/tests/groupTest.js +++ b/test/tests/groupTest.js @@ -4,7 +4,7 @@ describe("Zotero.Group", function () { describe("#constructor()", function() { it("should accept required parameters", function* () { 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 groupName = "Test " + Zotero.Utilities.randomString();