fix "Op" service name case to "op" (#53)

This commit is contained in:
Pavel 2021-06-04 14:05:04 +03:00 committed by GitHub
parent 53385c556a
commit 2e016e9b7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ describe('Tests for default handler', () => {
({ fnName, args, retCode, result }) => {
// arrange
const req: CallServiceData = {
serviceId: 'Op',
serviceId: 'op',
fnName: fnName,
args: args,
tetraplets: [],

View File

@ -18,7 +18,7 @@ const makeDefaultClientHandler = (): CallServiceHandler => {
resp.result = errorMsg;
};
const mw: Middleware = (req: CallServiceData, resp: CallServiceResult, next: Function) => {
if (req.serviceId === 'Op') {
if (req.serviceId === 'op') {
switch (req.fnName) {
case 'noop':
success(resp, {});