Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
'use strict'
const chalk = require('chalk')

const utils = require('./utils')
const validate = require('./apiGateway/validate')
const methods = require('./apiGateway/methods')
Expand Down Expand Up @@ -146,8 +144,8 @@ class ServerlessApigatewayServiceProxy {
let serviceProxyMessages = ''

const endpointInfo = this.gatheredData.info.endpoints
message += `${chalk.yellow.underline('Serverless APIGateway Service Proxy OutPuts')}\n`
message += `${chalk.yellow('endpoints:')}`
message += `Serverless APIGateway Service Proxy OutPuts\n`
message += `endpoints:`

proxies.forEach((serviceProxy) => {
Object.keys(serviceProxy).forEach((serviceName) => {
Expand Down
7 changes: 2 additions & 5 deletions lib/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use strict'
const chalk = require('chalk')
const sinon = require('sinon')
const chai = require('chai')
const BbPromise = require('bluebird')
Expand Down Expand Up @@ -374,10 +373,8 @@ describe('#index()', () => {
info: { endpoints: 'https://xxxxxx.execute-api.us-east-1.amazonaws.com/dev' }
}

const expectedMessage = `${chalk.yellow.underline(
'Serverless APIGateway Service Proxy OutPuts'
)}
${chalk.yellow('endpoints:')}
const expectedMessage = `Serverless APIGateway Service Proxy OutPuts
endpoints:
POST - https://xxxxxx.execute-api.us-east-1.amazonaws.com/dev/kinesis
POST - https://xxxxxx.execute-api.us-east-1.amazonaws.com/dev/sqs
POST - https://xxxxxx.execute-api.us-east-1.amazonaws.com/dev/s3
Expand Down
Loading