Skip to content

Commit cf60ae4

Browse files
fix: tests
1 parent 320fd66 commit cf60ae4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

__tests__/services/gateway-test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type { SinonStub } from 'sinon';
77
import sinon from 'sinon';
88
import { EXCEPTION_CODE } from '@constants/index';
99
import MicroserviceResponse from '@core/microservice-response';
10+
import { CookiesAction } from '@interfaces/core/i-microservice-response';
1011
import { MiddlewareHandler, MiddlewareType } from '@interfaces/services/i-abstract-microservice';
1112
import { IExpressRequest } from '@interfaces/services/i-gateway';
1213
import AbstractMicroservice from '@services/abstract-microservice';
@@ -401,8 +402,13 @@ describe('services/gateway', () => {
401402
hello: 'world',
402403
payload: {
403404
cookies: [
404-
{ action: 'add', name: 'cookie1', value: 'test1', options: { httpOnly: true } },
405-
{ action: 'remove', name: 'cookie2' },
405+
{
406+
action: CookiesAction.add,
407+
name: 'cookie1',
408+
value: 'test1',
409+
options: { httpOnly: true },
410+
},
411+
{ action: CookiesAction.remove, name: 'cookie2' },
406412
],
407413
},
408414
},

0 commit comments

Comments
 (0)