From f0b2eb63cdf3b495a79e7b2a8e638988941f51ec Mon Sep 17 00:00:00 2001 From: Tejas Shah Date: Mon, 30 Jan 2017 23:26:57 -0800 Subject: [PATCH] forgot to fix few remaining arrow functions --- test/test_alexa_app_session.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_alexa_app_session.js b/test/test_alexa_app_session.js index d7e6dc2..31315a7 100644 --- a/test/test_alexa_app_session.js +++ b/test/test_alexa_app_session.js @@ -36,7 +36,7 @@ describe("Alexa", function() { }); it("reponds with expected context applicationId", function() { - return testApp.request(mockRequest).then((response) => { + return testApp.request(mockRequest).then(function(response) { expect(reqObject.context).to .have.deep.property( "System.application.applicationId", @@ -299,7 +299,7 @@ describe("Alexa", function() { returnedAttributeValue = req.getSession().get("AttributeWhichDoesNotExist"); }; - return testApp.request(mockRequest).then(() => expect(returnedAttributeValue).to.not.be.undefined); + return testApp.request(mockRequest).then(function() { expect(returnedAttributeValue).to.not.be.undefined; }); }); }); }); @@ -315,7 +315,7 @@ describe("Alexa", function() { returnedAttributeValue = req.getSession().get("AttributeWhichDoesNotExist"); }; - return testApp.request(mockRequest).then(() => expect(returnedAttributeValue).to.be.undefined); + return testApp.request(mockRequest).then(function() { expect(returnedAttributeValue).to.be.undefined; }); }); }); });