return response.response; }); return expect(cardResponse).to.eventually.not.have.property("card"); }); });
return testApp.request(mockHelper.load("audio_player_events/playback_finished.json")) .should.eventually.be.fulfilled .and.not.have.deep.property("response.outputSpeech.type"); }); }); return testApp.request(mockHelper.load("audio_player_events/playback_failed.json")) .should.eventually.be.fulfilled .and.not.have.deep.property("response.outputSpeech.type"); }); }); return testApp.request(mockHelper.load("audio_player_events/playback_nearly_finished.json")) .should.eventually.be.fulfilled .and.not.have.deep.property("response.outputSpeech.type"); }); }); return testApp.request(mockHelper.load("audio_player_events/playback_started.json")) .should.eventually.be.fulfilled .and.not.have.deep.property("response.outputSpeech.type"); }); }); return testApp.request(mockHelper.load("audio_player_events/playback_stopped.json")) .should.eventually.be.fulfilled .and.not.have.deep.property("response.outputSpeech.type"); }); });
return testApp.request(mockRequest) .should.eventually.be.fulfilled .and.not.have.deep.property("response.outputSpeech.type"); });
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); }); }); });