Skip to content

Commit cd9fbc8

Browse files
committed
fix(*): fix
1 parent 3524239 commit cd9fbc8

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

packages/plugin-js-lambda-microlib/src/Handler.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,6 @@ export default class Handler {
5050
};
5151

5252
const addedGroups: {[key: string]: any} = {};
53-
if (0 <= this.middlewares.indexOf('@warmup')) {
54-
pushGroupTest(addedGroups, 'warmup', {name: 'warmup call', type: 'handler-call', config: {event: {warm: true}, expected: {status: 'success', code: 1000, message: 'warmed'}}});
55-
}
56-
if ((0 <= this.middlewares.indexOf('@apigateway') || ('apigateway' === this.type)) && (!this.vars.errors)) {
57-
pushGroupTest(addedGroups, 'apigateway', {name: 'malformed event', type: 'handler-call', config: {event: {}, expectedBody: JSON.stringify({errorType: 'not-found', message: 'Resource Not Found', code: 404, data: {}, errorInfo: {}})}});
58-
}
59-
if ((0 <= this.middlewares.indexOf('@apigateway') || ('apigateway' === this.type)) && (true === this.vars.healthz)) {
60-
pushGroupTest(addedGroups, 'apigateway', {name: 'healthz', type: 'handler-call', config: {event: {httpMethod: 'GET', resource: '/healthz'}, expectedBody: JSON.stringify({status: 'ok', code: 1001, message: 'healthy'})}});
61-
}
6253
if (('graphql' === this.type)) {
6354
pushGroupTest(addedGroups, 'graphql', {name: 'ui', type: 'handler-call', config: {event: {httpMethod: 'GET', resource: '/graphql', path: '/graphql', headers: {'Accept': 'text/html'}}, expectedStatusCode: 200}});
6455
}
@@ -167,4 +158,4 @@ export default class Handler {
167158
if (!Object.keys(ms[n]).length) return 'cnf';
168159
return `{...cnf, ...${stringifyObject(ms[n], {indent: '', inlineCharacterLimit: 100, singleQuotes: true})}}`;
169160
}
170-
}
161+
}

packages/plugin-js-lambda-microlib/src/MicroserviceType.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -556,10 +556,6 @@ export default class MicroserviceType {
556556
requirements['prepare'] = true;
557557
return ` ${conditionCode || ''}await prepare(query);`;
558558
}
559-
if ('@dispatch' === type) {
560-
requirements['dispatch'] = true;
561-
return ` ${conditionCode || ''}await dispatch(result, query);`;
562-
}
563559
if ('@after' === type) {
564560
requirements['after'] = true;
565561
return ` ${conditionCode || ''}await after(result, query);`;

0 commit comments

Comments
 (0)