mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2024-12-05 02:10:18 +00:00
fix "Op" service name case to "op" (#53)
This commit is contained in:
parent
53385c556a
commit
2e016e9b7a
@ -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: [],
|
||||
|
@ -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, {});
|
||||
|
Loading…
Reference in New Issue
Block a user