mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
lint
This commit is contained in:
parent
0c214bc8da
commit
1efa53e78e
@ -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' });
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user