Skip to content
Permalink
Browse files

Fixed Cloudfront Issue (#162)

* Fixed request issue with Cloudfront

* Fixed tests

* Changed to v2.5.1
  • Loading branch information...
armonge committed Oct 12, 2018
1 parent 1fdb554 commit 6e6541a483113d1db72c66febac7f0e4e88b9dab
Showing with 2 additions and 14 deletions.
  1. +1 −1 lib/apis/ApiBase.js
  2. +1 −1 package.json
  3. +0 −12 test/Lists.spec.js
@@ -17,7 +17,7 @@ class ApiBase {
return _.get(this.alexaEvent, 'context.System.apiEndpoint');
}

getResult(path = '', method = 'GET', body = {}) {
getResult(path = '', method = 'GET', body = undefined) {
const options = {
uri: `${this.getEndpoint()}/${path}`,
method,
@@ -1,6 +1,6 @@
{
"name": "voxa",
"version": "2.5.0",
"version": "2.5.1",
"description": "A fsm (state machine) framework for Alexa apps using Node.js",
"main": "index.js",
"scripts": {
@@ -128,10 +128,7 @@ describe('Lists', () => {

it('should create a custom list and create an item', async () => {
const reqheaders = {
'content-type': 'application/json',
authorization: 'Bearer consentToken',
host: 'api.amazonalexa.com',
accept: 'application/json',
};

nock('https://api.amazonalexa.com', { reqheaders })
@@ -175,10 +172,7 @@ describe('Lists', () => {

it('should modify custom list, and modify an item', async () => {
const reqheaders = {
'content-type': 'application/json',
authorization: 'Bearer consentToken',
host: 'api.amazonalexa.com',
accept: 'application/json',
};

const value = 'NEW NAME';
@@ -230,10 +224,7 @@ describe('Lists', () => {

it('should delete item from list, and delete list', async () => {
const reqheaders = {
'content-type': 'application/json',
authorization: 'Bearer consentToken',
host: 'api.amazonalexa.com',
accept: 'application/json',
};

const value = 'NEW NAME';
@@ -266,10 +257,7 @@ describe('Lists', () => {

it('should show the lists with at least 1 item', async () => {
const reqheaders = {
'content-type': 'application/json',
authorization: 'Bearer consentToken',
host: 'api.amazonalexa.com',
accept: 'application/json',
};

const value = 'NEW NAME';

0 comments on commit 6e6541a

Please sign in to comment.
You can’t perform that action at this time.