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:
parent
4ec6925220
commit
a59b78e59e
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue