From 1efa53e78ec7937f240dc7caaa5151a908a44f5c Mon Sep 17 00:00:00 2001 From: Daniel Schep Date: Wed, 17 Apr 2019 10:45:25 -0400 Subject: [PATCH] lint --- .../apiGateway/lib/method/index.test.js | 21 +++++-------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/lib/plugins/aws/package/compile/events/apiGateway/lib/method/index.test.js b/lib/plugins/aws/package/compile/events/apiGateway/lib/method/index.test.js index 0f16b78d0..78ef18d37 100644 --- a/lib/plugins/aws/package/compile/events/apiGateway/lib/method/index.test.js +++ b/lib/plugins/aws/package/compile/events/apiGateway/lib/method/index.test.js @@ -65,18 +65,7 @@ describe('#compileMethods()', () => { path: 'users/create', method: 'post', integration: 'AWS', - request: { - schema: { - 'application/json': {foo: 'bar'} - }, - }, - response: { - statusCodes: { - 200: { - pattern: '', - }, - }, - }, + request: { schema: { 'application/json': { foo: 'bar' } } }, }, }, ]; @@ -87,7 +76,7 @@ describe('#compileMethods()', () => { ).to.deep.equal({ Type: 'AWS::ApiGateway::RequestValidator', Properties: { - RestApiId: { Ref: "ApiGatewayRestApi" }, + RestApiId: { Ref: 'ApiGatewayRestApi' }, ValidateRequestBody: true, ValidateRequestParameters: true, }, @@ -98,9 +87,9 @@ describe('#compileMethods()', () => { ).to.deep.equal({ Type: 'AWS::ApiGateway::Model', Properties: { - RestApiId: { Ref: "ApiGatewayRestApi" }, + RestApiId: { Ref: 'ApiGatewayRestApi' }, ContentType: 'application/json', - Schema: {foo: 'bar'}, + Schema: { foo: 'bar' }, }, }); expect( @@ -112,7 +101,7 @@ describe('#compileMethods()', () => { expect( awsCompileApigEvents.serverless.service.provider.compiledCloudFormationTemplate .Resources.ApiGatewayMethodUsersCreatePost.Properties.RequestValidatorId - ).to.deep.equal({Ref: 'ApiGatewayMethodUsersCreatePostValidator'}); + ).to.deep.equal({ Ref: 'ApiGatewayMethodUsersCreatePostValidator' }); }); });