return response.response.directives; }); return expect(subject).to.eventually.be.empty; });
describe("the challenges list", function() { it("has all challenges if no arguments are passed", () => { return expect(challenge.fetch()).to.eventually.be.an("array").that.is .not.empty; }); it("has only a subset of challenges if keys are passed", function() { return challenge.fetch(["hello-world"]).then(challenges => { expect(challenges).to.be.an("array").that.is.not.empty; expect(challenges.length).to.equal(1); }); }); });
return response.response.directives; }); return expect(subject).to.eventually.be.empty; });