commit a59b78e59eb23d443515089b803faaf239bae0b7
parent 4ec6925220e09f616a5ad19e64bd60f4303d109b
Author: Tom Najdek <tom@doppnet.com>
Date: Wed, 31 May 2017 17:20:36 +0100
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
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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();